Class: Datahen::CLI::EnvVar

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

Instance Method Summary collapse

Instance Method Details

#listObject



11
12
13
14
# File 'lib/datahen/cli/env_var.rb', line 11

def list
  client = Client::EnvVar.new(options)
  puts "#{client.all}"
end

#set(name, value) ⇒ Object



23
24
25
26
27
# File 'lib/datahen/cli/env_var.rb', line 23

def set(name, value)
  # puts "options #{options}"
  client = Client::EnvVar.new(options)
  puts "#{client.set(name, value, options)}"
end

#show(name) ⇒ Object



30
31
32
33
# File 'lib/datahen/cli/env_var.rb', line 30

def show(name)
  client = Client::EnvVar.new(options)
  puts "#{client.find(name)}"
end

#unset(name) ⇒ Object



36
37
38
39
# File 'lib/datahen/cli/env_var.rb', line 36

def unset(name)
  client = Client::EnvVar.new(options)
  puts "#{client.unset(name)}"
end