Sha256: 7507ad5f628bc1e34a5750d51334b68c7c29e1085a4a99fa5e29e04b15eecfce

Contents?: true

Size: 435 Bytes

Versions: 31

Compression:

Stored size: 435 Bytes

Contents

Capistrano::Configuration.instance.load do
  # Load configuration
  config_path = File.expand_path('~/.capones.yml')

  if File.exist?(config_path)
    # Parse config file
    config = YAML.load_file(config_path)

    # States
    deploy_target_path = File.expand_path(config['deploy_target_repository']['path'])

    # Add stages
    set :stage_dir, File.join(deploy_target_path, application, 'stages')
    load_paths << ""
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
capones_recipes-1.12.0 lib/capones_recipes/tasks/deploy_targets.rb
capones_recipes-1.11.6 lib/capones_recipes/tasks/deploy_targets.rb
capones_recipes-1.11.5 lib/capones_recipes/tasks/deploy_targets.rb
capones_recipes-1.11.4 lib/capones_recipes/tasks/deploy_targets.rb
capones_recipes-1.11.3 lib/capones_recipes/tasks/deploy_targets.rb
capones_recipes-1.11.2 lib/capones_recipes/tasks/deploy_targets.rb
capones_recipes-1.11.1 lib/capones_recipes/tasks/deploy_targets.rb
capones_recipes-1.11.0 lib/capones_recipes/tasks/deploy_targets.rb
capones_recipes-1.10.0 lib/capones_recipes/tasks/deploy_targets.rb
capones_recipes-1.9.0 lib/capones_recipes/tasks/deploy_targets/load.rb
capones_recipes-1.8.0 lib/capones_recipes/tasks/deploy_targets/load.rb