Sha256: 7a12731ee9742bc4dfdfb4a6d6cdc876487f965a640874ba47164a124b694087

Contents?: true

Size: 335 Bytes

Versions: 28

Compression:

Stored size: 335 Bytes

Contents

module SimpleDeploy
  class Template
    def initialize(args)
      @file = args[:file]
    end

    def parameters
      parsed_template_contents.fetch('Parameters', {}).keys
    end

    private

    def parsed_template_contents
      JSON.parse contents
    end

    def contents
      @contents ||= IO.read @file
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
simple_deploy-0.10.2 lib/simple_deploy/template.rb
simple_deploy-0.10.1 lib/simple_deploy/template.rb
simple_deploy-0.10.0 lib/simple_deploy/template.rb
simple_deploy-0.10.0.beta.3 lib/simple_deploy/template.rb
simple_deploy-0.10.0.beta.2 lib/simple_deploy/template.rb
simple_deploy-0.10.0.beta.1 lib/simple_deploy/template.rb
simple_deploy-0.9.2 lib/simple_deploy/template.rb
simple_deploy-0.9.1 lib/simple_deploy/template.rb
simple_deploy-0.9.0 lib/simple_deploy/template.rb
simple_deploy-0.8.2 lib/simple_deploy/template.rb
simple_deploy-0.8.2.beta1 lib/simple_deploy/template.rb
simple_deploy-0.8.1.beta1 lib/simple_deploy/template.rb
simple_deploy-0.8.0 lib/simple_deploy/template.rb
simple_deploy-0.7.8 lib/simple_deploy/template.rb
simple_deploy-0.7.7 lib/simple_deploy/template.rb
simple_deploy-0.7.7.beta.1 lib/simple_deploy/template.rb
simple_deploy-0.7.6 lib/simple_deploy/template.rb
simple_deploy-0.7.6.beta.6 lib/simple_deploy/template.rb
simple_deploy-0.7.6.beta.5 lib/simple_deploy/template.rb
simple_deploy-0.7.6.beta.3 lib/simple_deploy/template.rb