Sha256: d3a8105eb18c58e6ddbdb06b28bca05d37daed0362ced48ff19d563638d706ea

Contents?: true

Size: 349 Bytes

Versions: 4

Compression:

Stored size: 349 Bytes

Contents

class Kubes::Compiler::Strategy
  class Base
    include Kubes::Logging

    def initialize(options={})
      @options = options
      @path = options[:path]

      @filename = @path.sub(%r{.*\.kubes/resources/},'') # IE: web/deployment.rb or web/deployment.yaml
      @save_file = @filename.sub('.yml','.yaml').sub('.rb','.yaml')
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
kubes-0.4.3 lib/kubes/compiler/strategy/base.rb
kubes-0.4.2 lib/kubes/compiler/strategy/base.rb
kubes-0.4.1 lib/kubes/compiler/strategy/base.rb
kubes-0.4.0 lib/kubes/compiler/strategy/base.rb