Class: Jets::CLI::Dotenv

Inherits:
Thor::Base show all
Defined in:
lib/jets/cli/dotenv.rb,
lib/jets/cli/dotenv/get.rb,
lib/jets/cli/dotenv/set.rb,
lib/jets/cli/dotenv/ssm.rb,
lib/jets/cli/dotenv/base.rb,
lib/jets/cli/dotenv/list.rb,
lib/jets/cli/dotenv/unset.rb

Defined Under Namespace

Classes: Base, Get, List, Set, Ssm, Unset

Instance Method Summary collapse

Methods inherited from Thor::Base

dispatch, exit_on_failure?, help_flags, version_flags, website

Methods included from Thor::Help

#capture_stdout_for_help, #help, #paginate_output

Instance Method Details

#get(name) ⇒ Object



11
12
13
# File 'lib/jets/cli/dotenv.rb', line 11

def get(name)
  Get.new(options.merge(name: name)).run
end

#listObject



6
7
8
# File 'lib/jets/cli/dotenv.rb', line 6

def list
  List.new(options).run
end

#set(*values) ⇒ Object



18
19
20
# File 'lib/jets/cli/dotenv.rb', line 18

def set(*values)
  Set.new(options.merge(values: values)).run
end

#unset(*names) ⇒ Object



24
25
26
# File 'lib/jets/cli/dotenv.rb', line 24

def unset(*names)
  Unset.new(options.merge(names: names)).run
end