Sha256: 2c41d5a4461b0bd2e686de95942dfeddcb117b3f14be5e6a7334b9183e5919c7

Contents?: true

Size: 696 Bytes

Versions: 4

Compression:

Stored size: 696 Bytes

Contents

module Kakine
  class CLI < Thor

    option :tenant, type: :string, aliases: '-t'
    desc 'show', 'show Security Groups specified tenant'
    def show
      setup(options)
      Kakine::Director.show_current_security_group
    end

    option :tenant, type: :string, aliases: "-t"
    option :dryrun, type: :boolean, aliases: "-d"
    option :filename, type: :string, aliases: "-f"
    desc 'apply', "apply local configuration into OpenStack"
    def apply
      setup(options)
      Kakine::Director.apply
    end

    no_commands do
      def setup(options)
        Kakine::Option.set_options(options)
        Kakine::Config.setup unless ENV['RACK_ENV'] == 'test'
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
kakine-0.6.2 lib/kakine/cli.rb
kakine-0.6.1 lib/kakine/cli.rb
kakine-0.6.0 lib/kakine/cli.rb
kakine-0.5.0 lib/kakine/cli.rb