Sha256: 961430e6a038968820ea214cf9a5b3d6191be9a8195f444f1d315e3a0152dc08

Contents?: true

Size: 455 Bytes

Versions: 37

Compression:

Stored size: 455 Bytes

Contents

require_relative 'context/deploy'

module Context
  class Deploy
    include DeployHelper

    attr_reader :context_name
    attr_reader :context_folder

    def initialize(context_name, deploycontext_folder)
      @context_name = context_name
      @context_folder = deploycontext_folder

      check_folder context_folder
    end

    def check_folder(folder)
      FileUtils.mkdir_p(context_folder) unless ::Dir.exist?(context_folder)
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
deploy-context-0.11.4 lib/deploy-context/deploy.rb
deploy-context-0.11.3 lib/deploy-context/deploy.rb
deploy-context-0.11.2 lib/deploy-context/deploy.rb
deploy-context-0.11.1 lib/deploy-context/deploy.rb
deploy-context-0.11.0.2.geb201f1 lib/deploy-context/deploy.rb
deploy-context-0.10.1 lib/deploy-context/deploy.rb
deploy-context-0.9.3 lib/deploy-context/deploy.rb
deploy-context-0.9.2 lib/deploy-context/deploy.rb
deploy-context-0.8.1 lib/deploy-context/deploy.rb
deploy-context-0.8.0.2.ged8af61 lib/deploy-context/deploy.rb
deploy-context-0.8.0.1.g477974d lib/deploy-context/deploy.rb
deploy-context-0.7.4 lib/deploy-context/deploy.rb
deploy-context-0.7.3 lib/deploy-context/deploy.rb
deploy-context-0.7.2 lib/deploy-context/deploy.rb
deploy-context-0.7.1 lib/deploy-context/deploy.rb
deploy-context-0.6.4 lib/deploy-context/deploy.rb
deploy-context-0.6.3 lib/deploy-context/deploy.rb
deploy-context-0.6.2 lib/deploy-context/deploy.rb
deploy-context-0.6.1.2.gfb82de1 lib/deploy-context/deploy.rb
deploy-context-0.6.1.1.g7f112bd lib/deploy-context/deploy.rb