mina 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7e57d7a2f311be20dd29e310433712323e2a108b
4
- data.tar.gz: 3c2188b7ec7e9b7b04e6979a6d4779130c6ad766
3
+ metadata.gz: cae22a1f308c5c03b29a2e0e6999a4d91be03d22
4
+ data.tar.gz: 21bbd317703ba2e9edce06b4d686b2c0c5da531d
5
5
  SHA512:
6
- metadata.gz: c5b3ee0b4444deb707c716b95ac2f5ecc9f804ca926cc75033a2a3ccd1c5877e66322e93b43a596fcde5cfca36389917dbe31ac47737f5794353a2fc7abe9a42
7
- data.tar.gz: ab068668773392d48fe8d8018d120d8c7c331981f97a7855bcd8de97482ac03972b1e9526521c422b076954a86c63d19f7d950b88e4e278ecb0c18c8d3285dde
6
+ metadata.gz: eb92bab261cc5e30981c4758b7e123f93eb18e39a4c0dddf6ebc8832101c7eeca68be40990c5c2dd91bab40bf24a0d88273201f7f9283f955040ae6ed47b012b
7
+ data.tar.gz: d739c256ef6f281ec060baebf825c35390748f9575a3284460a93e474a832cfde2030152a226534a46ec76d976c12315498e17f90a73ab6b6c23f044a0a0990f
@@ -19,11 +19,11 @@ set :branch, 'master'
19
19
  # set :port, '30000' # SSH port number.
20
20
  # set :forward_agent, true # SSH forward_agent.
21
21
 
22
- # They will be linked in the 'deploy:link_shared_paths' step.
23
- # set :shared_dirs, fetch(:shared_dirs, []).push('config')
22
+ # shared dirs and files will be symlinked into the app-folder by the 'deploy:link_shared_paths' step.
23
+ # set :shared_dirs, fetch(:shared_dirs, []).push('somedir')
24
24
  # set :shared_files, fetch(:shared_files, []).push('config/database.yml', 'config/secrets.yml')
25
25
 
26
- # This task is the environment that is loaded all remote run commands, such as
26
+ # This task is the environment that is loaded for all remote run commands, such as
27
27
  # `mina deploy` or `mina rake`.
28
28
  task :environment do
29
29
  # If you're using rbenv, use this to load the rbenv environment.
@@ -68,4 +68,4 @@ end
68
68
 
69
69
  # For help in making your deploy script, see the Mina documentation:
70
70
  #
71
- # - https://github.com/mina-deploy/mina/docs
71
+ # - https://github.com/mina-deploy/mina/tree/master/docs
@@ -25,7 +25,7 @@ fi
25
25
  # Check lockfile
26
26
  if [ -e "<%= fetch(:lock_file) %>" ]; then
27
27
  echo "! ERROR: another deployment is ongoing."
28
- echo "The file '<%= fetch(:lock_file) %>' was found."
28
+ echo "The file '<%= fetch(:lock_file) %>' was found. File was last modified at $(stat -c %y <%= fetch(:lock_file) %>)"
29
29
  echo "If no other deployment is ongoing, run 'mina deploy:force_unlock' to delete the file."
30
30
  exit 17
31
31
  fi
@@ -7,6 +7,7 @@ Migrating from 0.3.x to 1.0
7
7
  * `queue!` -> `command` # it will output the command if verbose is true
8
8
  * `to` -> `on` # changes queue name
9
9
  * `in_directory` -> `in_path` # wraps commands to be run in specified path
10
+ * `invoke :'task[param]'` -> `invoke :task, param` # passes params to the task
10
11
 
11
12
  ## new
12
13
  * `run` # runs commands on a specified backend, this has replaced old before and after hooks
@@ -34,6 +35,6 @@ All `*_path` variables (`:current_path`, `:shared_path`, ...) now include `:depl
34
35
  # Using new mina on old projects
35
36
 
36
37
  * run `mina setup`
37
- * if you do not want for bundle to install gems copy `current/vendor/bundle` to `/shared/vender/bundle`
38
+ * if you do not want for bundle to install gems copy `current/vendor/bundle` to `/shared/vendor/bundle`
38
39
  * if you do not want to precompile assets copy `current/public/assets` to `shared/public/assets`
39
40
  * if you want to precompile you will need to run deploy with `force_asset_precompile=true`
@@ -33,7 +33,7 @@ module Mina
33
33
  end
34
34
 
35
35
  def set?(key)
36
- !variables.fetch(key, nil).nil?
36
+ ENV.has_key?(key.to_s) || !variables.fetch(key, nil).nil?
37
37
  end
38
38
 
39
39
  def ensure!(key)
@@ -1,3 +1,3 @@
1
1
  module Mina
2
- VERSION = '1.0.2'.freeze
2
+ VERSION = '1.0.3'.freeze
3
3
  end
@@ -3,6 +3,9 @@ set :port, 22
3
3
  task :environment do
4
4
  end
5
5
 
6
+ task :default do
7
+ end
8
+
6
9
  task :run_commands do
7
10
  commands.run(:remote)
8
11
  end
@@ -27,7 +27,7 @@ namespace :deploy do
27
27
  end
28
28
 
29
29
  fetch(:shared_files, []).each do |linked_path|
30
- command %{ln -s "#{fetch(:shared_path)}/#{linked_path}" "./#{linked_path}"}
30
+ command %{ln -sf "#{fetch(:shared_path)}/#{linked_path}" "./#{linked_path}"}
31
31
  end
32
32
  end
33
33
 
@@ -73,7 +73,7 @@ task :setup do
73
73
  fetch(:shared_dirs, []).each do |linked_dir|
74
74
  command %{mkdir -p "#{linked_dir}"}
75
75
  end
76
- fetch(:shared_paths, []).each do |linked_path|
76
+ fetch(:shared_files, []).each do |linked_path|
77
77
  command %{mkdir -p "#{File.dirname(linked_path)}"}
78
78
  end
79
79
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mina
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stjepan Hadjić
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-12 00:00:00.000000000 Z
11
+ date: 2016-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake