Sha256: 145973f8c9e0a8186220b340ab26f90000d1040d47aeee8d972611dfc8c23af1

Contents?: true

Size: 711 Bytes

Versions: 53

Compression:

Stored size: 711 Bytes

Contents

module Context
  module DeployHelper
    def get_context_folder(context, folder)
      File.join(context.context_folder, folder)
    end

    def build_folder(context)
      get_context_folder(context, 'build')
    end
  
    def contexts_container(context)
      get_context_folder(context, 'contexts')
    end
    
    def chef_exec(commands)
      system("chef exec #{commands.join(' ')}")
    end
    
    def git(commands)
      chef_exec(['git'] + commands)
    end
    
    def gem(commands)
      chef_exec(['gem'] + commands)
    end
    
    def rake(commands)
      chef_exec(['rake'] + commands)
    end
    
    def cucumber(commands = [])
      chef_exec(['cucumber'] + commands)
    end
  end
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
deploy-context-0.11.57.1.ga274362.1.g8977db8.2.g07fba0a lib/deploy-context/context/deploy.rb
deploy-context-0.11.57.1.ga274362.1.g8977db8 lib/deploy-context/context/deploy.rb
deploy-context-0.11.57.1.ga274362 lib/deploy-context/context/deploy.rb
deploy-context-0.11.57 lib/deploy-context/context/deploy.rb
deploy-context-0.11.56 lib/deploy-context/context/deploy.rb
deploy-context-0.11.55.1.g0ddaa33 lib/deploy-context/context/deploy.rb
deploy-context-0.11.55 lib/deploy-context/context/deploy.rb
deploy-context-0.11.54 lib/deploy-context/context/deploy.rb
deploy-context-0.11.52 lib/deploy-context/context/deploy.rb
deploy-context-0.11.51 lib/deploy-context/context/deploy.rb
deploy-context-0.11.50 lib/deploy-context/context/deploy.rb
deploy-context-0.11.48 lib/deploy-context/context/deploy.rb
deploy-context-0.11.47 lib/deploy-context/context/deploy.rb
deploy-context-0.11.46 lib/deploy-context/context/deploy.rb
deploy-context-0.11.44 lib/deploy-context/context/deploy.rb
deploy-context-0.11.42 lib/deploy-context/context/deploy.rb
deploy-context-0.11.41 lib/deploy-context/context/deploy.rb
deploy-context-0.11.35 lib/deploy-context/context/deploy.rb
deploy-context-0.11.34 lib/deploy-context/context/deploy.rb
deploy-context-0.11.33 lib/deploy-context/context/deploy.rb