Sha256: 505df77be11aee91e571643a071d41f4400070feef6befa0d1c20566f0708bd8

Contents?: true

Size: 577 Bytes

Versions: 7

Compression:

Stored size: 577 Bytes

Contents

module Cody::Dsl
  class Base
    attr_reader :project_name, :full_project_name
    def initialize(options={})
      @options = options
      @project_name = options[:project_name]
      @full_project_name = options[:full_project_name] # includes -development at the end
      @properties = default_properties # defaults make project.rb simpler
    end

    # In v1.0.0 defaults to not auto-camelize
    def auto_camelize(data)
      if Cody.settings[:auto_camelize]
        CfnCamelizer.transform(data)
      else
        data.deep_stringify_keys!
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cody-1.0.6 lib/cody/dsl/base.rb
cody-1.0.5 lib/cody/dsl/base.rb
cody-1.0.4 lib/cody/dsl/base.rb
cody-1.0.3 lib/cody/dsl/base.rb
cody-1.0.2 lib/cody/dsl/base.rb
cody-1.0.1 lib/cody/dsl/base.rb
cody-1.0.0 lib/cody/dsl/base.rb