Sha256: 8147dc4b57d5102a755ee1a52ca86298ecf857e50142ba7e58dc2effb55ed427

Contents?: true

Size: 1.65 KB

Versions: 26

Compression:

Stored size: 1.65 KB

Contents

set :deploy_var, "tester"
set :deploy_var_2, "bongo"
set :deploy_var_3, ["one","two"]
server :test, :addresses => ["slashdot.org","google.com"], :user => "root", :key => "id_rsa"

command_set :push_to_thang do
  run :deploy_var
  run "run with #{deploy_var}"
  run :deploy_var_2
end

command_set :task_only_var do
  run :task_var
end

command_set :set_var do
  set :deploy_var, "dingle"
  run :deploy_var
end

command_set :nested do
  run "3"
  run "4"
end

command_set :simple1 do
  run "1"
  run "2"
  nested
end

command_set :really_simple do
  run "1"
  run "2"
  run "3"
end

command_set :nested_inside_with_var do
  set :nested_var, "nested"
  run :nested_var
end

command_set :nested_outside_with_var do
  set :nested_var, "birdo"
  run :nested_var
  nested_inside_with_var
  run :nested_var
end

command_set :use_scp do
  scp :local => "/tmp/test", :remote => "/tmp/test"
end


task_for :use_command_set_no_override, :server => :test do
  push_to_thang
end

task_for :use_command_set_with_override, :server => :test do
  set :deploy_var, "shasta"
  push_to_thang
end

task_for :use_command_set_complex_override, :server => :test do
  set :deploy_var, "bango"
  set_var
end

task_for :nested_command_set, :server => :test do
  simple1
end

task_for :really_simple_task, :server => :test do
  really_simple
end

task_for :task_set_var, :server => :test do
  set :task_var, "bojangles"
  task_only_var
end

task_for :command_set_override, :server => :test do
  set :deploy_var, "bubbles"
  set_var
end

task_for :nested_scoping, :server => :test do
  set :nested_var, "task"
  nested_outside_with_var
  run :nested_var
end

task_for :task_use_scp, :server => :test do
  use_scp
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
screwcap-0.8.3 test/config/command_sets.rb
screwcap-0.8.2 test/config/command_sets.rb
screwcap-0.8.1 test/config/command_sets.rb
screwcap-0.8 test/config/command_sets.rb
screwcap-0.7.4 test/config/command_sets.rb
screwcap-0.7.3 test/config/command_sets.rb
screwcap-0.7.2 test/config/command_sets.rb
screwcap-0.7.1 test/config/command_sets.rb
screwcap-0.7 test/config/command_sets.rb
screwcap-0.6.3 test/config/command_sets.rb
screwcap-0.6.2 test/config/command_sets.rb
screwcap-0.6.1 test/config/command_sets.rb
screwcap-0.6 test/config/command_sets.rb
screwcap-0.6.pre6 test/config/command_sets.rb
screwcap-0.6.pre5 test/config/command_sets.rb
screwcap-0.6.pre4 test/config/command_sets.rb
screwcap-0.6.pre3 test/config/command_sets.rb
screwcap-0.6.pre2 test/config/command_sets.rb
screwcap-0.6.pre test/config/command_sets.rb
screwcap-0.5 test/config/command_sets.rb