lib/aws_ec2/cli.rb in aws-ec2-0.7.0 vs lib/aws_ec2/cli.rb in aws-ec2-0.8.0
- old
+ new
@@ -1,8 +1,7 @@
module AwsEc2
class CLI < Command
- class_option :verbose, type: :boolean
class_option :noop, type: :boolean
class_option :profile, desc: "profile name to use"
desc "create NAME", "create ec2 instance"
long_desc Help.text(:create)
@@ -18,12 +17,19 @@
option :auto_terminate, type: :boolean, default: true, desc: "automatically terminate the instance at the end of user-data"
def ami(name)
Ami.new(options.merge(name: name)).run
end
- desc "compile", "compiles app/scripts and app/user-data to tmp folder"
- long_desc Help.text(:compile)
- def compile
- Compile.new(options).compile
+ desc "compile_scripts", "compiles app/scripts and app/user-data to tmp folder"
+ long_desc Help.text(:compile_scripts)
+ def compile_scripts
+ Script::Compile.new(options).compile
+ end
+
+ desc "upload_scripts", "compiles and uploads scripts to s3"
+ long_desc Help.text(:upload_scripts)
+ option :compile, type: :boolean, default: true, desc: "compile scripts before uploading"
+ def upload_scripts
+ Script::Upload.new(options).upload
end
end
end