Sha256: f9c5dd8eaee4abe0d1a31669177b4e700e2a0a13a0f74eb694ac7761103a96bb

Contents?: true

Size: 664 Bytes

Versions: 5

Compression:

Stored size: 664 Bytes

Contents

require 'mattock'

module LogicalConstruct
  module GroundControl
    class Core < Mattock::TaskLib
      include Mattock::ValiseManager
      extend Mattock::ValiseManager

      default_namespace :core
      setting(:search_paths, [rel_dir(__FILE__)])
      setting(:valise)

      def default_configuration
        super
      end

      def resolve_configuration
        self.valise = default_valise(*search_paths)
        super
      end

      def define
        in_namespace do
          desc "List the search paths for files used by ground control"
          task :search_paths do
            p valise
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
logical-construct-0.0.5 lib/logical-construct/ground-control/core.rb
logical-construct-0.0.4 lib/logical-construct/ground-control/core.rb
logical-construct-0.0.3 lib/logical-construct/ground-control/core.rb
logical-construct-0.0.2 lib/logical-construct/ground-control/core.rb
logical-construct-0.0.1 lib/logical-construct/ground-control/core.rb