Class: Target

Inherits:
Thor
  • Object
show all
Defined in:
lib/negroku/cli.rb

Instance Method Summary collapse

Instance Method Details

#add(host = nil) ⇒ Object



127
128
129
130
131
132
133
# File 'lib/negroku/cli.rb', line 127

def add(host=nil)
  if host.nil?
    host = ask("Type the host or ip for the target machine")
  end
  saveConfig(:add, :target, host)
  say "[Negroku] Added #{host}"
end

#listObject



141
142
143
# File 'lib/negroku/cli.rb', line 141

def list
  puts "I will list the target servers"
end

#removeObject



136
137
138
# File 'lib/negroku/cli.rb', line 136

def remove
  puts "I will remove a target"
end