Sha256: 6e3976a222dc81f88bad77fe40a984e4ab843fa73ae31cda9f407bf32abb5433

Contents?: true

Size: 721 Bytes

Versions: 1

Compression:

Stored size: 721 Bytes

Contents

require 'thor'
%w{launching management monitor helpers}.each do |f|
  require File.expand_path(File.dirname(__FILE__)+"/cli/#{f}.rb")
end

module Freyr
  class CLI < Thor
    include Thor::Actions
    
    def initialize(*)
      super
      get_services
    end
    
    default_task :list
    class_option :'config-file', :desc => 'config file to use', :type => :string
    class_option :'ignore-local', :desc => "don't use the local Freyrfile or .freyrrc", :type => :boolean, :default => false
    class_option :namespace, :type => :string, :desc => 'namespace to look in'
    map "-v" => :version
    
    desc 'version', 'displays current gem version'
    def version
      say Freyr::VERSION
    end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
freyr-0.3.0 lib/freyr/cli.rb