Sha256: 0ad5b60070d03a5880246b0577c415a83d3d9ce8c1d9c3a7815eb365c6d8c9e7

Contents?: true

Size: 397 Bytes

Versions: 13

Compression:

Stored size: 397 Bytes

Contents

require 'ns-options'
require 'ns-options/boolean'
require 'logger'

module App

  # mixin on just the top-level NsOptions variant
  include NsOptions

  options(:settings) do
    option :root,   Pathname
    option :stage
    option :logger, Logger
    option :self_stage, :default => Proc.new { self.stage }

    namespace :sub do
      option :run_commands, NsOptions::Boolean
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ns-options-1.1.6 test/support/app.rb
ns-options-1.1.5 test/support/app.rb
ns-options-1.1.4 test/support/app.rb
ns-options-1.1.3 test/support/app.rb
ns-options-1.1.2 test/support/app.rb
ns-options-1.1.1 test/support/app.rb
ns-options-1.1.0 test/support/app.rb
ns-options-1.0.1 test/support/app.rb
ns-options-1.0.0 test/support/app.rb
ns-options-1.0.0.rc4 test/support/app.rb
ns-options-1.0.0.rc3 test/support/app.rb
ns-options-1.0.0.rc2 test/support/app.rb
ns-options-1.0.0.rc1 test/support/app.rb