capistrano 3.16.0 → 3.19.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/.docker/Dockerfile +7 -0
  3. data/.docker/ssh_key_rsa +49 -0
  4. data/.docker/ssh_key_rsa.pub +1 -0
  5. data/.docker/ubuntu_setup.sh +23 -0
  6. data/.github/release-drafter.yml +10 -2
  7. data/.github/workflows/ci.yml +80 -0
  8. data/.github/workflows/release-drafter.yml +18 -0
  9. data/.rubocop.yml +3 -3
  10. data/DEVELOPMENT.md +5 -20
  11. data/Gemfile +9 -4
  12. data/README.md +2 -2
  13. data/Rakefile +9 -6
  14. data/capistrano.gemspec +0 -4
  15. data/docker-compose.yml +8 -0
  16. data/features/deploy.feature +5 -1
  17. data/features/sshconnect.feature +1 -1
  18. data/features/step_definitions/assertions.rb +33 -23
  19. data/features/step_definitions/setup.rb +10 -13
  20. data/features/support/docker_gateway.rb +53 -0
  21. data/features/support/env.rb +0 -10
  22. data/features/support/remote_command_helpers.rb +3 -3
  23. data/features/support/remote_ssh_helpers.rb +33 -0
  24. data/lib/capistrano/configuration/validated_variables.rb +1 -1
  25. data/lib/capistrano/doctor/variables_doctor.rb +2 -0
  26. data/lib/capistrano/scm/git.rb +5 -0
  27. data/lib/capistrano/scm/tasks/git.rake +11 -0
  28. data/lib/capistrano/tasks/deploy.rake +23 -1
  29. data/lib/capistrano/templates/deploy.rb.erb +2 -2
  30. data/lib/capistrano/version.rb +1 -1
  31. data/spec/integration/dsl_spec.rb +11 -11
  32. data/spec/lib/capistrano/configuration/scm_resolver_spec.rb +1 -0
  33. data/spec/lib/capistrano/dsl_spec.rb +2 -2
  34. data/spec/lib/capistrano/scm/git_spec.rb +10 -0
  35. data/spec/support/test_app.rb +15 -11
  36. metadata +14 -54
  37. data/.github/workflows/push.yml +0 -12
  38. data/.travis.yml +0 -30
  39. data/Dangerfile +0 -1
  40. data/features/support/vagrant_helpers.rb +0 -41
  41. data/spec/support/.gitignore +0 -1
  42. data/spec/support/Vagrantfile +0 -23
@@ -1,23 +0,0 @@
1
- require "open-uri"
2
-
3
- Vagrant.configure("2") do |config|
4
- config.ssh.insert_key = false
5
-
6
- [:app].each_with_index do |role, i|
7
- config.vm.define(role, primary: true) do |primary|
8
- primary.vm.define role
9
- primary.vm.box = "hashicorp/precise64"
10
- primary.vm.network "forwarded_port", guest: 22, host: "222#{i}".to_i
11
- primary.vm.provision :shell, inline: "sudo apt-get -y install git-core"
12
-
13
- vagrantkey = open("https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub", "r", &:read)
14
-
15
- primary.vm.provision :shell,
16
- inline: <<-INLINE
17
- install -d -m 700 /root/.ssh
18
- echo -e "#{vagrantkey}" > /root/.ssh/authorized_keys
19
- chmod 0600 /root/.ssh/authorized_keys
20
- INLINE
21
- end
22
- end
23
- end