Sha256: 5f0d99c2c250f3b06128280050c80c65061de918c774be3d665be27e200aa1fa

Contents?: true

Size: 548 Bytes

Versions: 36

Compression:

Stored size: 548 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

36 entries across 36 versions & 1 rubygems

Version Path
deploy-context-2.0.8 lib/deploy-context/deploy.rb
deploy-context-2.0.7 lib/deploy-context/deploy.rb
deploy-context-2.0.6 lib/deploy-context/deploy.rb
deploy-context-2.0.5.1.g566bf75 lib/deploy-context/deploy.rb
deploy-context-2.0.4 lib/deploy-context/deploy.rb
deploy-context-2.0.3 lib/deploy-context/deploy.rb
deploy-context-2.0.2.1.g00ce101 lib/deploy-context/deploy.rb
deploy-context-2.0.2 lib/deploy-context/deploy.rb
deploy-context-2.0.1.1.g34e199f lib/deploy-context/deploy.rb
deploy-context-2.0.1 lib/deploy-context/deploy.rb
deploy-context-2.0.0.1.gae09dc8 lib/deploy-context/deploy.rb
deploy-context-1.0.0 lib/deploy-context/deploy.rb
deploy-context-0.13.0.1.g5a3c3d4 lib/deploy-context/deploy.rb
deploy-context-0.12.0 lib/deploy-context/deploy.rb
deploy-context-0.11.57.1.ga274362.1.g8977db8.3.g30c6ab3.1.g83cd298 lib/deploy-context/deploy.rb
deploy-context-0.11.57.1.ga274362.1.g8977db8.3.g30c6ab3 lib/deploy-context/deploy.rb
deploy-context-0.11.57.1.ga274362.1.g8977db8.2.g07fba0a lib/deploy-context/deploy.rb
deploy-context-0.11.57.1.ga274362.1.g8977db8 lib/deploy-context/deploy.rb
deploy-context-0.11.57.1.ga274362 lib/deploy-context/deploy.rb
deploy-context-0.11.57 lib/deploy-context/deploy.rb