Sha256: d8e92aca91a7cbbad3fea35920f9844f291ae32eda4be5a5cc9ec5f837070c73

Contents?: true

Size: 584 Bytes

Versions: 14

Compression:

Stored size: 584 Bytes

Contents

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

        class << self
          def included(base)
            super(base)
            base.option '-d', '--folder NAME', default_lookup: :default_local_folder, desc: 'Source local folder'
          end
        end

        module ClassMethods
          def default_local_folder
            return '.' unless defined?(self::DEFAULT_LOCAL_FOLDER)
            self::DEFAULT_LOCAL_FOLDER
          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/local_folder.rb
eco-rake-0.2.6 lib/eco-rake/lib/concern/local_folder.rb
eco-rake-0.2.5 lib/eco-rake/lib/concern/local_folder.rb
eco-rake-0.2.4 lib/eco-rake/lib/concern/local_folder.rb
eco-rake-0.2.3 lib/eco-rake/lib/concern/local_folder.rb
eco-rake-0.2.2 lib/eco-rake/lib/concern/local_folder.rb
eco-rake-0.2.1 lib/eco-rake/lib/concern/local_folder.rb
eco-rake-0.2.0 lib/eco-rake/lib/concern/local_folder.rb
eco-rake-0.1.6 lib/eco-rake/lib/concern/local_folder.rb
eco-rake-0.1.5 lib/eco-rake/lib/concern/local_folder.rb
eco-rake-0.1.4 lib/eco-rake/lib/concern/local_folder.rb
eco-rake-0.1.3 lib/eco-rake/lib/concern/local_folder.rb
eco-rake-0.1.2 lib/eco-rake/lib/concern/local_folder.rb
eco-rake-0.1.1 lib/eco-rake/lib/concern/local_folder.rb