Class: SmallWonder::Deploy

Inherits:
Object
  • Object
show all
Defined in:
lib/small_wonder/deploy.rb

Class Method Summary collapse

Class Method Details

.runObject



3
4
5
6
7
8
9
10
11
12
13
# File 'lib/small_wonder/deploy.rb', line 3

def self.run()
  if SmallWonder::Config.app
    nodes = SmallWonder::Deploy.node_query()

    action = SmallWonder::Config.action.split(",")

    SmallWonder::Deploy.run_action_task(action, SmallWonder::Config.app, nodes)
  else
    SmallWonder::Log.error("No application was specified for your deploy, use the '-p' switch.")
  end
end