Sha256: 952a50b508087ec8657d45b527c3194b7e6215cf5ab0037363c18c589dd57046

Contents?: true

Size: 630 Bytes

Versions: 14

Compression:

Stored size: 630 Bytes

Contents

namespace :shiplane do
  desc "Bootstrap host - provisions docker and nginx-proxy"
  task :bootstrap, [:role] => ['bootstrap:default']

  namespace :bootstrap do
    task :default, [:role] do |task, args|
      filter = args.fetch('role', 'all')
      hosts = roles(filter).map do |host|
        Shiplane::ChefHost.new(host, env)
      end

      set :shiplane_hosts, hosts

      %w{ prepare install configure cleanup }.each do |task|
        invoke "shiplane:bootstrap:#{task}"
      end
    end

    task :prepare do
    end

    task :install do
    end

    task :configure do
    end

    task :cleanup do
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
shiplane_bootstrappers_chef-0.1.18 lib/capistrano/tasks/shiplane_bootstrap.rake
shiplane_bootstrappers_chef-0.1.17 lib/capistrano/tasks/shiplane_bootstrap.rake
shiplane_bootstrappers_chef-0.1.16 lib/capistrano/tasks/shiplane_bootstrap.rake
shiplane_bootstrappers_chef-0.1.15 lib/capistrano/tasks/shiplane_bootstrap.rake
shiplane_bootstrappers_chef-0.1.14 lib/capistrano/tasks/shiplane_bootstrap.rake
shiplane_bootstrappers_chef-0.1.13 lib/capistrano/tasks/shiplane_bootstrap.rake
shiplane_bootstrappers_chef-0.1.12 lib/capistrano/tasks/shiplane_bootstrap.rake
shiplane_bootstrappers_chef-0.1.11 lib/capistrano/tasks/shiplane_bootstrap.rake
shiplane_bootstrappers_chef-0.1.10 lib/capistrano/tasks/shiplane_bootstrap.rake
shiplane_bootstrappers_chef-0.1.9 lib/capistrano/tasks/shiplane_bootstrap.rake
shiplane_bootstrappers_chef-0.1.8 lib/capistrano/tasks/shiplane_bootstrap.rake
shiplane_bootstrappers_chef-0.1.7 lib/capistrano/tasks/shiplane_bootstrap.rake
shiplane_bootstrappers_chef-0.1.6 lib/capistrano/tasks/shiplane_bootstrap.rake
shiplane_bootstrappers_chef-0.1.5 lib/capistrano/tasks/shiplane_bootstrap.rake