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.20.1 lib/capones_recipes/tasks/deploy_targets.rb
capones_recipes-1.20.0 lib/capones_recipes/tasks/deploy_targets.rb
capones_recipes-1.19.1 lib/capones_recipes/tasks/deploy_targets.rb
capones_recipes-1.19.0 lib/capones_recipes/tasks/deploy_targets.rb
capones_recipes-1.18.0 lib/capones_recipes/tasks/deploy_targets.rb
capones_recipes-1.17.0 lib/capones_recipes/tasks/deploy_targets.rb
capones_recipes-1.16.0 lib/capones_recipes/tasks/deploy_targets.rb
capones_recipes-1.15.5 lib/capones_recipes/tasks/deploy_targets.rb
capones_recipes-1.15.4 lib/capones_recipes/tasks/deploy_targets.rb
capones_recipes-1.15.3 lib/capones_recipes/tasks/deploy_targets.rb
capones_recipes-1.15.2 lib/capones_recipes/tasks/deploy_targets.rb
capones_recipes-1.15.1 lib/capones_recipes/tasks/deploy_targets.rb
capones_recipes-1.15.0 lib/capones_recipes/tasks/deploy_targets.rb
capones_recipes-1.14.1 lib/capones_recipes/tasks/deploy_targets.rb
capones_recipes-1.14.0 lib/capones_recipes/tasks/deploy_targets.rb
capones_recipes-1.13.4 lib/capones_recipes/tasks/deploy_targets.rb
capones_recipes-1.13.3 lib/capones_recipes/tasks/deploy_targets.rb
capones_recipes-1.13.2 lib/capones_recipes/tasks/deploy_targets.rb
capones_recipes-1.13.1 lib/capones_recipes/tasks/deploy_targets.rb
capones_recipes-1.13.0 lib/capones_recipes/tasks/deploy_targets.rb