#!/usr/bin/env ruby require 'aemninja' ARGV << '--help' if ARGV.empty? command = ARGV.shift aemninja = Aemninja::Application::new if command == "deploy" then pkg = ARGV.shift || Aemninja::Usage.deploy environment = ARGV.shift || 'local' aemninja.deploy!(pkg, environment) elsif command == "init" then aemninja.init! elsif command == "list" then aemninja.list! else aemninja.no_valid_command end