Sha256: 6da9a6906b0897323e9ddf896848736a2b8c4c8be38b64f75fc15f99b79e1daf
Contents?: true
Size: 330 Bytes
Versions: 2
Compression:
Stored size: 330 Bytes
Contents
# The main SmartMachine Apps module SmartMachine class Apps < SmartMachine::Base def run(*args) args.flatten! action = args.shift raise "invalid action on the app" unless ['create', 'destroy', 'start', 'stop'].include? action Object.const_get("SmartMachine::Apps::App").public_send(action, *args) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
smartmachine-0.8.0 | lib/smart_machine/apps.rb |
smartmachine-0.7.0 | lib/smart_machine/apps.rb |