Sha256: ee66c4ba2ab3ed409c99226e0e1ca4809531e8e7db105b291d76e1ef22ac75f0

Contents?: true

Size: 587 Bytes

Versions: 33

Compression:

Stored size: 587 Bytes

Contents

module PowerStencil
  module Plugins

    module Capabilities

      DEFAULT_CAPABILITIES = {
          command_line: false,
          local_config: false,
          processors: false,
          build: false,
          dsl: false,
          entity_definitions: false,
          code: false,
          version: false,
          templates: false
      }.freeze

      def capabilities
        @capabilities ||= DEFAULT_CAPABILITIES.dup
      end

      def valid?
        capabilities.keys.each {|cap_name| return true if capabilities[cap_name]}
        false
      end

    end

  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
power_stencil-0.4.2 lib/power_stencil/plugins/capabilities.rb
power_stencil-0.4.1 lib/power_stencil/plugins/capabilities.rb
power_stencil-0.4.0 lib/power_stencil/plugins/capabilities.rb
power_stencil-0.3.9 lib/power_stencil/plugins/capabilities.rb
power_stencil-0.3.8 lib/power_stencil/plugins/capabilities.rb
power_stencil-0.3.7 lib/power_stencil/plugins/capabilities.rb
power_stencil-0.3.6 lib/power_stencil/plugins/capabilities.rb
power_stencil-0.3.5 lib/power_stencil/plugins/capabilities.rb
power_stencil-0.3.4 lib/power_stencil/plugins/capabilities.rb
power_stencil-0.3.3 lib/power_stencil/plugins/capabilities.rb
power_stencil-0.3.2 lib/power_stencil/plugins/capabilities.rb
power_stencil-0.3.1 lib/power_stencil/plugins/capabilities.rb
power_stencil-0.3.0 lib/power_stencil/plugins/capabilities.rb