class ArisControl::Thor
Public Instance Methods
add(name)
click to toggle source
# File lib/aris-control/thor.rb, line 9 def add(name) opts = Hash.new.tap do |o| o[:email] = options[:email] o[:ssh_key] = options[:ssh_key] if options[:ssh_key] o[:env_vars] = options[:env_vars] if options[:env_vars] end bookkeeper.add(name, **opts) puts "Added/Updated app: #{name}, #{opts}" puts "-----------------------------" print_current_aris_apps end
add_env_vars(name)
click to toggle source
# File lib/aris-control/thor.rb, line 23 def add_env_vars(name) bookkeeper.add_env_vars(name, options[:env_vars]) puts "Added/Updated app: #{name}, #{options}" puts "-----------------------------" print_current_aris_apps end
delete(name)
click to toggle source
# File lib/aris-control/thor.rb, line 31 def delete(name) bookkeeper.delete(name) puts "Removed app: #{name}" puts "-----------------------------" print_current_aris_apps end
list()
click to toggle source
# File lib/aris-control/thor.rb, line 39 def list print_current_aris_apps end
rollout()
click to toggle source
# File lib/aris-control/thor.rb, line 44 def rollout provsioner.rollout print_current_aris_apps end
version()
click to toggle source
# File lib/aris-control/thor.rb, line 50 def version puts ArisControl::VERSION end
Private Instance Methods
bookkeeper()
click to toggle source
# File lib/aris-control/thor.rb, line 62 def bookkeeper @bookkeeper ||= ArisControl::Bookkeeper.new end
print_current_aris_apps()
click to toggle source
# File lib/aris-control/thor.rb, line 56 def print_current_aris_apps puts "Current aris app database" puts "-----------------------------" pp bookkeeper.list end
provsioner()
click to toggle source
# File lib/aris-control/thor.rb, line 66 def provsioner @provsioner ||= ArisControl::Provisioner.new end