capistrano-lameco 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 41b0c15d1c63d5eb1dc8b382c0fc635f09ae0c3c484a076bc5ea6d2715ed7795
4
- data.tar.gz: b9918450b3726f2d156d9ae8061195b3f2a958e7eb2ed830fff44c2e064f9989
3
+ metadata.gz: 754903ca214514841709f45dfca4d0a58742e3071bf63f721f23a130620046e4
4
+ data.tar.gz: 219cd4f1c5db533ccd078e3aeb4331d2df8272b3b0f5e150ab0f20a7947a9321
5
5
  SHA512:
6
- metadata.gz: 7e0b53aab8dc9fd1d9f43d6f88ade5e48231529b07c423d8c1b1fcd6805dcfa0576c179ed29d407ae5cf55a008f105d1d74902bc51cddb4a88e97076cf91cec8
7
- data.tar.gz: d707902b216637fdf16a1c4b33ca2eb0a522019f3c770473f42e3ef26624bb9f86da8ce708a69eff02b15179dd6441bb0686af2e0664676867ed7aab6a269128
6
+ metadata.gz: 89b69394fa52c6b4106f44bf04746f02305fe55e8515ca657950fa0c3eff0b6bd84b007603bd6af371a58848cac297fe817fd35e244e3ef91ecd932537e5061c
7
+ data.tar.gz: 024620d374412823dca4e32025b032ff6e2adb7811ff6350e85bb53dc1cb0c0b5710ef45f278b8042acd3406223b58e5597a588842f242e7945f79365ac6decf
@@ -3,11 +3,11 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = "capistrano-lameco"
6
- spec.version = "0.1.1"
6
+ spec.version = "0.1.2"
7
7
  spec.authors = ["Laméco Development B.V."]
8
8
  spec.email = ["development@lameco.nl"]
9
- spec.summary = %q{Common Laméco helpers for Capistrano}
10
- spec.homepage = "https://www.lameco.nl"
9
+ spec.summary = %q{Laméco helper tasks for Capistrano}
10
+ spec.homepage = "https://bitbucket.org/Lameco/capistrano-lameco/src/main/"
11
11
 
12
12
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
13
13
  # to allow pushing to a single host or delete this section to allow pushing to any host.
@@ -1,9 +1,6 @@
1
1
  namespace :lameco do
2
2
  task :db_download_current do
3
3
  on roles(:app) do
4
- # TODO: Make sure keep_database is read from the command line
5
- puts "Keep database: #{fetch(:keep_database)}"
6
-
7
4
  remote_env_content = capture("cat #{fetch(:deploy_to)}/shared/.env")
8
5
  remote_env = fetch_env(remote_env_content)
9
6
  remote_database_user, remote_database_password, remote_database_name = extract_db_credentials(remote_env)
@@ -25,10 +22,7 @@ namespace :lameco do
25
22
 
26
23
  if local_database_user && local_database_password && local_database_name
27
24
  execute "gunzip -c #{fetch(:lameco_dump_dir)}/#{fetch(:dump_file)} | mysql -u #{local_database_user} -p#{local_database_password} #{local_database_name}"
28
-
29
- #if not fetch(:keep_database, false)
30
- # execute "rm #{fetch(:lameco_dump_dir)}/#{fetch(:dump_file)}"
31
- #end
25
+ execute "rm #{fetch(:lameco_dump_dir)}/#{fetch(:dump_file)}"
32
26
  else
33
27
  error "Local database credentials could not be extracted."
34
28
  end
@@ -37,7 +31,7 @@ namespace :lameco do
37
31
 
38
32
  task :download do
39
33
  run_locally do
40
- execute "rsync -azh --partial --append --progress -e 'ssh -p #{fetch(:ssh_options)[:port]}' #{fetch:lameco_user}@#{fetch(:server)}:#{fetch(:deploy_to)}/shared/#{fetch(:lameco_public_dir)}/uploads #{fetch(:lameco_public_dir)}"
34
+ execute "rsync -azh --partial --append --progress -e 'ssh -p #{fetch(:ssh_options)[:port]}' #{fetch(:lameco_user)}@#{fetch(:server)}:#{fetch(:deploy_to)}/shared/#{fetch(:lameco_public_dir)}/uploads #{fetch(:lameco_public_dir)}"
41
35
  end
42
36
  end
43
37
 
@@ -79,4 +73,3 @@ namespace :lameco do
79
73
  [nil, nil, nil]
80
74
  end
81
75
  end
82
- end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-lameco
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Laméco Development B.V.
@@ -71,11 +71,11 @@ files:
71
71
  - lib/capistrano/lameco/defaults.rb
72
72
  - lib/capistrano/lameco/lameco.rb
73
73
  - lib/capistrano/tasks/lameco.rake
74
- homepage: https://www.lameco.nl
74
+ homepage: https://bitbucket.org/Lameco/capistrano-lameco/src/main/
75
75
  licenses: []
76
76
  metadata:
77
- homepage_uri: https://www.lameco.nl
78
- source_code_uri: https://www.lameco.nl
77
+ homepage_uri: https://bitbucket.org/Lameco/capistrano-lameco/src/main/
78
+ source_code_uri: https://bitbucket.org/Lameco/capistrano-lameco/src/main/
79
79
  post_install_message:
80
80
  rdoc_options: []
81
81
  require_paths:
@@ -94,5 +94,5 @@ requirements: []
94
94
  rubygems_version: 3.0.3.1
95
95
  signing_key:
96
96
  specification_version: 4
97
- summary: Common Laméco helpers for Capistrano
97
+ summary: Laméco helper tasks for Capistrano
98
98
  test_files: []