Sha256: ee1514c9a3626c9ea0b650c12b27337b12c5b090d4fed06ea69d0e09814e6280

Contents?: true

Size: 408 Bytes

Versions: 8

Compression:

Stored size: 408 Bytes

Contents

require 'singleton'
module Kakine
  class Option
    include Singleton
    class << self
      def set_options(options)
        @@options = options
      end

      def yaml_name
        @@options[:filename] ? @@options[:filename] : "#{@@options[:tenant]}.yaml"
      end

      def tenant_name
        @@options["tenant"]
      end

      def dryrun?
        @@options["dryrun"]
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
kakine-0.7.0 lib/kakine/option.rb
kakine-0.6.5 lib/kakine/option.rb
kakine-0.6.4 lib/kakine/option.rb
kakine-0.6.2 lib/kakine/option.rb
kakine-0.6.1 lib/kakine/option.rb
kakine-0.6.0 lib/kakine/option.rb
kakine-0.5.0 lib/kakine/option.rb
kakine-0.4.0 lib/kakine/option.rb