Sha256: 00c28016483bddf963f51b4ec9efe6e63f2cb16c0e4e59eb94b8a42fa2d5c691

Contents?: true

Size: 549 Bytes

Versions: 12

Compression:

Stored size: 549 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
    end

    def present_localy?
      Dir.exist?(context_folder)
    end

    def check_folder(folder)
      FileUtils.mkdir_p(context_folder) unless present_localy?
    end

    def version
      Dir.chdir(context_folder)
      GVB.version
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
deploy-context-2.1.1 lib/deploy-context/deploy.rb
deploy-context-2.1.0.2.g3d63a5a lib/deploy-context/deploy.rb
deploy-context-2.1.0.1.gfc552cd lib/deploy-context/deploy.rb
deploy-context-2.1.0 lib/deploy-context/deploy.rb
deploy-context-2.0.11.1.g2fb12a4.1.g77162b5 lib/deploy-context/deploy.rb
deploy-context-2.0.11.1.g2fb12a4 lib/deploy-context/deploy.rb
deploy-context-2.0.11 lib/deploy-context/deploy.rb
deploy-context-2.0.10.1.g6db0997.1.gafb2bd3 lib/deploy-context/deploy.rb
deploy-context-2.0.10.1.g6db0997 lib/deploy-context/deploy.rb
deploy-context-2.0.10 lib/deploy-context/deploy.rb
deploy-context-2.0.9 lib/deploy-context/deploy.rb
deploy-context-2.0.8.1.gdd5846f lib/deploy-context/deploy.rb