lib/kakine/cli.rb in kakine-0.6.2 vs lib/kakine/cli.rb in kakine-0.6.4
- old
+ new
@@ -15,9 +15,21 @@
def apply
setup(options)
Kakine::Director.apply
end
+ option :tenant, type: :string, aliases: "-t"
+ option :filename, type: :string, aliases: "-f"
+ option :format, type: :string, aliases: '-F'
+ option :output, type: :string, aliases: '-o'
+ desc 'convert', 'convert Security Groups into other format'
+ def convert
+ format = options[:format] or fail '--format is required'
+ output = options[:output]
+ Kakine::Option.set_options(options)
+ Kakine::Director.convert(format, output)
+ end
+
no_commands do
def setup(options)
Kakine::Option.set_options(options)
Kakine::Config.setup unless ENV['RACK_ENV'] == 'test'
end