Sha256: bffe893e0d997eb09f31e90ac04a7c0aaf9ca20cdfba6c5b84528ba5d1f30228

Contents?: true

Size: 556 Bytes

Versions: 14

Compression:

Stored size: 556 Bytes

Contents

class EcoRake
  module Sample
    module Concern
      module Enviro
        include EcoRake::Sample::Concern::Base

        class << self
          def included(base)
            super(base)
            base.option '-e', '--enviro ENVIRO', default_lookup: :default_enviro
          end
        end

        module ClassMethods
          def default_enviro
            raise "Missing const 'DEFAULT_ENVIRO'" unless defined?(self::DEFAULT_ENVIRO)
            self::DEFAULT_ENVIRO
          end
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
eco-rake-0.2.7 lib/eco-rake/lib/concern/enviro.rb
eco-rake-0.2.6 lib/eco-rake/lib/concern/enviro.rb
eco-rake-0.2.5 lib/eco-rake/lib/concern/enviro.rb
eco-rake-0.2.4 lib/eco-rake/lib/concern/enviro.rb
eco-rake-0.2.3 lib/eco-rake/lib/concern/enviro.rb
eco-rake-0.2.2 lib/eco-rake/lib/concern/enviro.rb
eco-rake-0.2.1 lib/eco-rake/lib/concern/enviro.rb
eco-rake-0.2.0 lib/eco-rake/lib/concern/enviro.rb
eco-rake-0.1.6 lib/eco-rake/lib/concern/enviro.rb
eco-rake-0.1.5 lib/eco-rake/lib/concern/enviro.rb
eco-rake-0.1.4 lib/eco-rake/lib/concern/enviro.rb
eco-rake-0.1.3 lib/eco-rake/lib/concern/enviro.rb
eco-rake-0.1.2 lib/eco-rake/lib/concern/enviro.rb
eco-rake-0.1.1 lib/eco-rake/lib/concern/enviro.rb