Sha256: ba2513061aebbf1d38a9dd1aaaf84aabfa403169762d6bfa1f090ea40bcca033

Contents?: true

Size: 625 Bytes

Versions: 14

Compression:

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
deploy-context-0.6.0.1.ge54bf72.1.g3590b37 lib/deploy-context/context/deploy.rb
deploy-context-0.6.0.1.ge54bf72 lib/deploy-context/context/deploy.rb
deploy-context-0.5.1.1.g528de70.1.g25eba10 lib/deploy-context/context/deploy.rb
deploy-context-0.5.1.1.g528de70 lib/deploy-context/context/deploy.rb
deploy-context-0.5.1 lib/deploy-context/context/deploy.rb
deploy-context-0.5.0.2.gd7dfe44.1.g11bfe44 lib/deploy-context/context/deploy.rb
deploy-context-0.5.0.2.gd7dfe44 lib/deploy-context/context/deploy.rb
deploy-context-0.5.0.1.ga4a42be lib/deploy-context/context/deploy.rb
deploy-context-0.4.0.1.g0f0d133 lib/deploy-context/context/deploy.rb
deploy-context-0.3.0.1.g8904331 lib/deploy-context/context/deploy.rb
deploy-context-0.2.0.1.g91ccda3 lib/deploy-context/context/deploy.rb
deploy-context-0.2.0 lib/deploy-context/context/deploy.rb
deploy-context-0.1.0.6.g43abfe4 lib/deploy-context/context/deploy.rb
deploy-context-0.1.0.5.gab62daf lib/deploy-context/context/deploy.rb