Class: Lono::Sets

Inherits:
Command show all
Defined in:
lib/lono/sets.rb,
lib/lono/sets/base.rb,
lib/lono/sets/list.rb,
lib/lono/sets/opts.rb,
lib/lono/sets/create.rb,
lib/lono/sets/delete.rb,
lib/lono/sets/deploy.rb,
lib/lono/sets/status.rb,
lib/lono/sets/update.rb,
lib/lono/sets/instances.rb,
lib/lono/sets/summarize.rb,
lib/lono/sets/time_spent.rb

Defined Under Namespace

Modules: Preview, Summarize, TimeSpent Classes: Base, Create, Delete, Deploy, Instances, List, Opts, Status, Update

Instance Method Summary collapse

Methods inherited from Command

alter_command_description, command_help, dispatch, exit_on_failure?, website

Instance Method Details

#delete(stack) ⇒ Object



23
24
25
# File 'lib/lono/sets.rb', line 23

def delete(stack)
  Delete.new(options.merge(stack: stack)).run
end

#deploy(stack) ⇒ Object



8
9
10
# File 'lib/lono/sets.rb', line 8

def deploy(stack)
  Deploy.new(options.merge(stack: stack)).run
end

#listObject



30
31
32
# File 'lib/lono/sets.rb', line 30

def list
  List.new(options).run
end

#status(stack) ⇒ Object



14
15
16
17
18
# File 'lib/lono/sets.rb', line 14

def status(stack)
  status = Status.new(@options.merge(stack: stack, delay_for_threads: false))
  success = status.show
  exit 3 unless success
end