Project

General

Profile

Revision 104144fb

Added by Thomas McKay over 9 years ago

foreman-os - out/in/update works

View differences:

lib/hammer_cli_csv/base.rb
25 25

  
26 26
require 'hammer_cli'
27 27
require 'katello_api'
28
require 'foreman_api'
28 29
require 'json'
29 30
require 'csv'
30 31

  
......
39 40
    option ['--csv-export'], :flag, 'Export current data instead of importing'
40 41

  
41 42
    def initialize(*args)
42
      @init_options = { :base_url => HammerCLI::Settings.get(:katello, :host),
43
                        :username => HammerCLI::Settings.get(:katello, :username),
44
                        :password => HammerCLI::Settings.get(:katello, :password) }
43
      @init_options = {
44
          :katello => {
45
            :base_url => HammerCLI::Settings.get(:katello, :host),
46
            :username => HammerCLI::Settings.get(:katello, :username),
47
            :password => HammerCLI::Settings.get(:katello, :password)
48
          },
49
          :foreman => {
50
            :base_url => HammerCLI::Settings.get(:foreman, :host),
51
            :username => HammerCLI::Settings.get(:foreman, :username),
52
            :password => HammerCLI::Settings.get(:foreman, :password)
53
          }
54
      }
45 55
    end
46 56

  
47 57
    def get_lines(filename)

Also available in: Unified diff