Sha256: 85dbbfca25754370a0accb59a4c3ed9792a4bd4b1f681bd99cb0bd2380e515d9

Contents?: true

Size: 598 Bytes

Versions: 1

Compression:

Stored size: 598 Bytes

Contents

require 'logical-construct/target/sinatra-resolver'
module LogicalConstruct
  module Default
    class ResolveConfiguration < Mattock::Tasklib
      default_namespace 'configuration'

      setting :bind, '0.0.0.0'
      setting :port, 51076
      setting :valise

      def default_configuration(provision)
        self.valise = provision.valise
      end

      def define
        in_namespace do
          resolver = LogicalConstruct::SinatraResolver.new do |task|
            task.task_name = "resolve"
          end
          copy_settings_to(resolver)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
logical-construct-0.0.1.localtesting lib/logical-construct/target/platforms/default/resolve-configuration.rb