mina 1.0.0.beta3 → 1.0.0.beta4

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
  SHA1:
3
- metadata.gz: 261d84773ca676a3055c61340791b56b0effdec0
4
- data.tar.gz: f863a1a2a91bf1ec553b143827b1d7b466b2eb2d
3
+ metadata.gz: d7e4bbe584b47f1733e6d26dd00d4ec9fb9a8127
4
+ data.tar.gz: 2ecc4e001b83398d545575b3c8aabaf5ae6c48c7
5
5
  SHA512:
6
- metadata.gz: 1afb944dc91032e50b394f5d4610d0b6fc73c17931dda7e1929dab92f97c372e65693ce8e97123a99acb1719b1adf021429ddb85ec9e23dd3d98585843cddcc0
7
- data.tar.gz: a18b131de119c56faf129f08521ac0ca4e0c79918fa10a366ae42140dcddba63567ad090003cce90bb0b6377e176ef10f4f67acfc9be7fda4c56d1b5ca8b5268
6
+ metadata.gz: a56e0f7f29d5758dc21b0637bbd37ea0f6df2f3ecb8b14120154c5d2ecd6c8b3390837ae33d63d51652354eaaf389a390c84814d064176b147d39dbf5d0ade8a
7
+ data.tar.gz: 564a98a1deb9456b9b87631c0817f1811bec4300aed0682c5a0d4cfef22b0825bd4d058c10ff2d1ec206b1dbb4f8c5dfde78071a7b9958e129115a1213ee801d
data/data/deploy.rb CHANGED
@@ -37,7 +37,7 @@ end
37
37
  # Put any custom commands you need to run at setup
38
38
  # All paths in `shared_dirs` and `shared_paths` will be created on their own.
39
39
  task setup: :environment do
40
- # command %(rbenv install 2.3.0)
40
+ # command %{rbenv install 2.3.0}
41
41
  end
42
42
 
43
43
  desc "Deploys the current version to the server."
@@ -56,8 +56,8 @@ task deploy: :environment do
56
56
 
57
57
  on :launch do
58
58
  in_path(fetch(:current_path)) do
59
- command %(mkdir -p tmp/)
60
- command %(touch tmp/restart.txt)
59
+ command %{mkdir -p tmp/}
60
+ command %{touch tmp/restart.txt}
61
61
  end
62
62
  end
63
63
  end
data/lib/mina/commands.rb CHANGED
@@ -19,9 +19,9 @@ module Mina
19
19
 
20
20
  def comment(code, indent: nil)
21
21
  if indent
22
- queue[stage] << indent(indent, %(echo "-----> #{code}"))
22
+ queue[stage] << indent(indent, %{echo "-----> #{code}"})
23
23
  else
24
- queue[stage] << %(echo "-----> #{code}")
24
+ queue[stage] << %{echo "-----> #{code}"}
25
25
  end
26
26
  end
27
27
 
@@ -31,8 +31,8 @@ module Mina
31
31
 
32
32
  def process(path = nil)
33
33
  if path
34
- queue[stage].unshift(%(echo "$ cd #{path}")) if fetch(:verbose)
35
- %((cd #{path} && #{queue[stage].join(' && ')}))
34
+ queue[stage].unshift(%{echo "$ cd #{path}"}) if fetch(:verbose)
35
+ %{(cd #{path} && #{queue[stage].join(' && ')})}
36
36
  else
37
37
  queue[stage].join("\n")
38
38
  end
data/lib/mina/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mina
2
- VERSION = '1.0.0.beta3'.freeze
2
+ VERSION = '1.0.0.beta4'.freeze
3
3
  end
@@ -3,19 +3,19 @@ require 'mina/default'
3
3
  set :bundle_bin, 'bundle'
4
4
  set :bundle_path, 'vendor/bundle'
5
5
  set :bundle_withouts, 'development test'
6
- set :bundle_options, -> { %(--without #{fetch(:bundle_withouts)} --path "#{fetch(:bundle_path)}" --deployment) }
6
+ set :bundle_options, -> { %{--without #{fetch(:bundle_withouts)} --path "#{fetch(:bundle_path)}" --deployment} }
7
7
  set :shared_dirs, fetch(:shared_dirs, []).push(fetch(:bundle_path))
8
8
 
9
9
  namespace :bundle do
10
10
  desc 'Install gem dependencies using Bundler.'
11
11
  task install: :environment do
12
- comment %(Installing gem dependencies using Bundler)
13
- command %(#{fetch(:bundle_bin)} install #{fetch(:bundle_options)})
12
+ comment %{Installing gem dependencies using Bundler}
13
+ command %{#{fetch(:bundle_bin)} install #{fetch(:bundle_options)}}
14
14
  end
15
15
 
16
16
  desc 'Cleans up unused gems in your bundler directory'
17
17
  task :clean do
18
- comment %(Cleans up unsed gems)
19
- command %(#{fetch(:bundle_bin)} clean #{fetch(:bundle_options)})
18
+ comment %{Cleans up unsed gems}
19
+ command %{#{fetch(:bundle_bin)} clean #{fetch(:bundle_options)}}
20
20
  end
21
21
  end
data/tasks/mina/chruby.rb CHANGED
@@ -7,11 +7,11 @@ task :chruby, :env do |_, args|
7
7
  exit 1
8
8
  end
9
9
 
10
- comment %(chruby to version: \\"#{args[:env]}\\")
11
- command %(if [[ ! -s "#{fetch(:chruby_path)}" ]]; then
10
+ comment %{chruby to version: \\"#{args[:env]}\\"}
11
+ command %{if [[ ! -s "#{fetch(:chruby_path)}" ]]; then
12
12
  echo "! chruby.sh init file not found"
13
13
  exit 1
14
- fi)
15
- command %(source #{fetch(:chruby_path)})
16
- command %(chruby "#{args[:env]}" || exit 1)
14
+ fi}
15
+ command %{source #{fetch(:chruby_path)}}
16
+ command %{chruby "#{args[:env]}" || exit 1}
17
17
  end
@@ -49,5 +49,5 @@ end
49
49
 
50
50
  desc 'Open an ssh session to the server and cd to deploy_to folder'
51
51
  task ssh: :environment do
52
- exec Mina::Backend::Remote.new(nil).ssh + %( "cd #{fetch(:deploy_to)} && exec $SHELL")
52
+ exec Mina::Backend::Remote.new(nil).ssh + %{ 'cd #{fetch(:deploy_to)} && exec $SHELL'}
53
53
  end
data/tasks/mina/deploy.rb CHANGED
@@ -12,22 +12,22 @@ set :execution_mode, :pretty
12
12
  namespace :deploy do
13
13
  desc 'Forces a deploy unlock.'
14
14
  task force_unlock: :environment do
15
- comment %(Unlocking)
16
- command %(rm -f "#{fetch(:deploy_to)}/#{fetch(:lock_file)}")
15
+ comment %{Unlocking}
16
+ command %{rm -f "#{fetch(:deploy_to)}/#{fetch(:lock_file)}"}
17
17
  end
18
18
 
19
19
  desc 'Links paths set in :shared_dirs and :shared_files.'
20
20
  task link_shared_paths: :environment do
21
- comment %(Symlinking shared paths)
21
+ comment %{Symlinking shared paths}
22
22
 
23
23
  fetch(:shared_dirs, []).each do |linked_dir|
24
- command %(mkdir -p #{File.dirname("./#{linked_dir}")})
25
- command %(rm -rf "./#{linked_dir}")
26
- command %(ln -s "#{fetch(:shared_path)}/#{linked_dir}" "./#{linked_dir}")
24
+ command %{mkdir -p #{File.dirname("./#{linked_dir}")}}
25
+ command %{rm -rf "./#{linked_dir}"}
26
+ command %{ln -s "#{fetch(:shared_path)}/#{linked_dir}" "./#{linked_dir}"}
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 -s "#{fetch(:shared_path)}/#{linked_path}" "./#{linked_path}"}
31
31
  end
32
32
  end
33
33
 
@@ -36,27 +36,27 @@ namespace :deploy do
36
36
  ensure!(:keep_releases)
37
37
  ensure!(:deploy_to)
38
38
 
39
- comment %(Cleaning up old releases (keeping #{fetch(:keep_releases)}))
39
+ comment %{Cleaning up old releases (keeping #{fetch(:keep_releases)})}
40
40
  in_path "#{fetch(:releases_path)}" do
41
- command %(count=$(ls -A1 | sort -rn | wc -l))
42
- command %(remove=$((count > #{fetch(:keep_releases)} ? count - #{fetch(:keep_releases)} : 0)))
43
- command %(ls -A1 | sort -rn | tail -n $remove | xargs rm -rf {})
41
+ command %{count=$(ls -A1 | sort -rn | wc -l)}
42
+ command %{remove=$((count > #{fetch(:keep_releases)} ? count - #{fetch(:keep_releases)} : 0))}
43
+ command %{ls -A1 | sort -rn | tail -n $remove | xargs rm -rf {}}
44
44
  end
45
45
  end
46
46
  end
47
47
 
48
48
  desc 'Rollbacks the latest release'
49
49
  task rollback: :environment do
50
- comment %(Rolling back to previous release)
50
+ comment %{Rolling back to previous release}
51
51
 
52
52
  in_path "#{fetch(:releases_path)}" do
53
53
  # TODO: add check if there are more than 1 release
54
- command %(rollback_release=$(ls -1A | sort -n | tail -n 2 | head -n 1))
55
- comment %(Rollbacking to release: $rollback_release)
56
- command %(ln -nfs #{fetch(:releases_path)}/$rollback_release #{fetch(:current_path)})
57
- command %(current_release=$(ls -1A | sort -n | tail -n 1))
58
- comment %(Deleting current release: $current_release)
59
- command %(rm -rf #{fetch(:releases_path)}/$current_release)
54
+ command %{rollback_release=$(ls -1A | sort -n | tail -n 2 | head -n 1)}
55
+ comment %{Rollbacking to release: $rollback_release}
56
+ command %{ln -nfs #{fetch(:releases_path)}/$rollback_release #{fetch(:current_path)}}
57
+ command %{current_release=$(ls -1A | sort -n | tail -n 1)}
58
+ comment %{Deleting current release: $current_release}
59
+ command %{rm -rf #{fetch(:releases_path)}/$current_release}
60
60
  end
61
61
  end
62
62
 
@@ -64,27 +64,27 @@ desc 'Sets up a site.'
64
64
  task setup: :environment do
65
65
  ensure!(:deploy_to)
66
66
 
67
- comment %(Setting up #{fetch(:deploy_to)})
68
- command %(mkdir -p "#{fetch(:deploy_to)}")
69
- command %(chown -R $(whoami) "#{fetch(:deploy_to)}")
70
- command %(chmod g+rx,u+rwx "#{fetch(:deploy_to)}")
71
- command %(mkdir -p "#{fetch(:releases_path)}")
72
- command %(chmod g+rx,u+rwx "#{fetch(:releases_path)}")
73
- command %(mkdir -p "#{fetch(:shared_path)}")
74
- command %(chmod g+rx,u+rwx "#{fetch(:shared_path)}")
67
+ comment %{Setting up #{fetch(:deploy_to)}}
68
+ command %{mkdir -p "#{fetch(:deploy_to)}"}
69
+ command %{chown -R $(whoami) "#{fetch(:deploy_to)}"}
70
+ command %{chmod g+rx,u+rwx "#{fetch(:deploy_to)}"}
71
+ command %{mkdir -p "#{fetch(:releases_path)}"}
72
+ command %{chmod g+rx,u+rwx "#{fetch(:releases_path)}"}
73
+ command %{mkdir -p "#{fetch(:shared_path)}"}
74
+ command %{chmod g+rx,u+rwx "#{fetch(:shared_path)}"}
75
75
 
76
76
  in_path "#{fetch(:shared_path)}" do
77
77
  fetch(:shared_dirs, []).each do |linked_dir|
78
- command %(mkdir -p "#{linked_dir}")
79
- command %(chmod g+rx,u+rwx "#{linked_dir}")
78
+ command %{mkdir -p "#{linked_dir}"}
79
+ command %{chmod g+rx,u+rwx "#{linked_dir}"}
80
80
  end
81
81
  fetch(:shared_paths, []).each do |linked_path|
82
- command %(mkdir -p "#{File.dirname(linked_path)}")
83
- command %(chmod g+rx,u+rwx "#{File.dirname(linked_path)}")
82
+ command %{mkdir -p "#{File.dirname(linked_path)}"}
83
+ command %{chmod g+rx,u+rwx "#{File.dirname(linked_path)}"}
84
84
  end
85
85
  end
86
86
 
87
- command %(tree "#{fetch(:deploy_to)}" || ls -al "#{fetch(:deploy_to)}")
87
+ command %{tree "#{fetch(:deploy_to)}" || ls -al "#{fetch(:deploy_to)}"}
88
88
 
89
89
  invoke :ssh_keyscan
90
90
  end
data/tasks/mina/git.rb CHANGED
@@ -11,11 +11,11 @@ namespace :git do
11
11
  ensure!(:repository)
12
12
  ensure!(:deploy_to)
13
13
  if set?(:commit)
14
- comment %(Using git commit \\"#{fetch(:commit)}\\")
15
- command %(git clone "#{fetch(:repository)}" . --recursive)
16
- command %(git checkout -b current_release "#{fetch(:commit)}" --force)
14
+ comment %{Using git commit \\"#{fetch(:commit)}\\"}
15
+ command %{git clone "#{fetch(:repository)}" . --recursive}
16
+ command %{git checkout -b current_release "#{fetch(:commit)}" --force}
17
17
  else
18
- command %(if [ ! -d "#{fetch(:deploy_to)}/scm/objects" ]; then
18
+ command %{if [ ! -d "#{fetch(:deploy_to)}/scm/objects" ]; then
19
19
  echo "-----> Cloning the Git repository"
20
20
  #{echo_cmd %[git clone "#{fetch(:repository)}" "#{fetch(:deploy_to)}/scm" --bare]}
21
21
  else
@@ -23,29 +23,29 @@ namespace :git do
23
23
  #{echo_cmd %[(cd "#{fetch(:deploy_to)}/scm" && git fetch "#{fetch(:repository)}" "#{fetch(:branch)}:#{fetch(:branch)}" --force)]}
24
24
  fi &&
25
25
  echo "-----> Using git branch '#{fetch(:branch)}'" &&
26
- #{echo_cmd %[git clone "#{fetch(:deploy_to)}/scm" . --recursive --branch "#{fetch(:branch)}"]}), quiet: true
26
+ #{echo_cmd %[git clone "#{fetch(:deploy_to)}/scm" . --recursive --branch "#{fetch(:branch)}"]}}, quiet: true
27
27
  end
28
28
 
29
- comment %(Using this git commit)
30
- command %(git rev-parse HEAD > .mina_git_revision)
31
- command %(git --no-pager log --format="%aN (%h):%n> %s" -n 1)
29
+ comment %{Using this git commit}
30
+ command %{git rev-parse HEAD > .mina_git_revision}
31
+ command %{git --no-pager log --format="%aN (%h):%n> %s" -n 1}
32
32
  if fetch(:remove_git_dir)
33
- command %(rm -rf .git)
33
+ command %{rm -rf .git}
34
34
  end
35
35
  end
36
36
 
37
37
  task revision: :environment do
38
38
  ensure!(:deploy_to)
39
- command %(cat #{fetch(:current_path)}/.mina_git_revision)
39
+ command %{cat #{fetch(:current_path)}/.mina_git_revision}
40
40
  end
41
41
 
42
42
  task ensure_pushed: :environment do
43
43
  run :local do
44
- comment %(Ensuring everyting is pushed to git)
45
- command %( if [ $(git log #{fetch(:remote)}/#{fetch(:branch)}..#{fetch(:branch)} | wc -l) -ne 0 ]; then
44
+ comment %{Ensuring everyting is pushed to git}
45
+ command %{if [ $(git log #{fetch(:remote)}/#{fetch(:branch)}..#{fetch(:branch)} | wc -l) -ne 0 ]; then
46
46
  echo "! #{fetch(:git_not_pushed_message)}"
47
47
  exit 1
48
- fi)
48
+ fi}
49
49
  end
50
50
  end
51
51
  end
data/tasks/mina/rails.rb CHANGED
@@ -2,7 +2,7 @@ require 'mina/deploy'
2
2
  require 'mina/bundler'
3
3
 
4
4
  set :rails_env, 'production'
5
- set :bundle_prefix, -> { %(RAILS_ENV="#{fetch(:rails_env)}" #{fetch(:bundle_bin)} exec) }
5
+ set :bundle_prefix, -> { %{RAILS_ENV="#{fetch(:rails_env)}" #{fetch(:bundle_bin)} exec} }
6
6
  set :rake, -> { "#{fetch(:bundle_prefix)} rake" }
7
7
  set :rails, -> { "#{fetch(:bundle_prefix)} rails" }
8
8
  set :compiled_asset_path, 'public/assets'
@@ -15,7 +15,7 @@ desc 'Starts an interactive console.'
15
15
  task console: :environment do
16
16
  set :execution_mode, :exec
17
17
  in_path "#{fetch(:current_path)}" do
18
- command %(#{fetch(:rails)} console)
18
+ command %{#{fetch(:rails)} console}
19
19
  end
20
20
  end
21
21
 
@@ -23,7 +23,7 @@ desc 'Tail log from server'
23
23
  task log: :environment do
24
24
  set :execution_mode, :exec
25
25
  in_path "#{fetch(:shared_path)}/log" do
26
- command %(tail -f #{fetch(:rails_env)}.log)
26
+ command %{tail -f #{fetch(:rails_env)}.log}
27
27
  end
28
28
  end
29
29
 
@@ -31,45 +31,41 @@ namespace :rails do
31
31
  desc 'Migrate database'
32
32
  task db_migrate: :environment do
33
33
  if fetch(:force_migrate)
34
- comment %(Migrating database)
35
- command %(#{fetch(:rake)} db:migrate)
34
+ comment %{Migrating database}
35
+ command %{#{fetch(:rake)} db:migrate}
36
36
  else
37
37
  command check_for_changes_script(
38
38
  at: fetch(:migration_dirs),
39
- skip: %(echo "-----> DB migrations unchanged; skipping DB migration"),
40
- changed: %(
41
- echo "-----> Migrating database"
42
- #{echo_cmd("#{fetch(:rake)} db:migrate")}
43
- )
39
+ skip: %{echo "-----> DB migrations unchanged; skipping DB migration"},
40
+ changed: %{echo "-----> Migrating database"
41
+ #{echo_cmd("#{fetch(:rake)} db:migrate")}}
44
42
  ), quiet: true
45
43
  end
46
44
  end
47
45
 
48
46
  desc 'Create database'
49
47
  task db_create: :environment do
50
- comment %(Creating database)
51
- command %(#{fetch(:rake)} db:create)
48
+ comment %{Creating database}
49
+ command %{#{fetch(:rake)} db:create}
52
50
  end
53
51
 
54
52
  desc 'Rollback database'
55
53
  task db_rollback: :environment do
56
- comment %(Rollbacking database)
57
- command %(#{fetch(:rake)} db:rollback)
54
+ comment %{Rollbacking database}
55
+ command %{#{fetch(:rake)} db:rollback}
58
56
  end
59
57
 
60
58
  desc 'Precompiles assets (skips if nothing has changed since the last release).'
61
59
  task assets_precompile: :environment do
62
60
  if fetch(:force_asset_precompile)
63
- comment %(Precompiling asset files)
64
- command %(#{fetch(:rake)} assets:precompile)
61
+ comment %{Precompiling asset files}
62
+ command %{#{fetch(:rake)} assets:precompile}
65
63
  else
66
64
  command check_for_changes_script(
67
65
  at: fetch(:asset_dirs),
68
- skip: %(echo "-----> Skipping asset precompilation"),
69
- changed: %(
70
- echo "-----> Precompiling asset files"
71
- #{echo_cmd "#{fetch(:rake)} assets:precompile"}
72
- )
66
+ skip: %{echo "-----> Skipping asset precompilation"},
67
+ changed: %{echo "-----> Precompiling asset files"
68
+ #{echo_cmd "#{fetch(:rake)} assets:precompile"}}
73
69
  ), quiet: true
74
70
  end
75
71
  end
@@ -77,15 +73,15 @@ end
77
73
 
78
74
  def check_for_changes_script(options)
79
75
  diffs = options[:at].map do |path|
80
- %(diff -qrN "#{fetch(:current_path)}/#{path}" "./#{path}" 2>/dev/null)
76
+ %{diff -qrN "#{fetch(:current_path)}/#{path}" "./#{path}" 2>/dev/null}
81
77
  end.join(' && ')
82
78
 
83
- %(if #{diffs}
79
+ %{if #{diffs}
84
80
  then
85
81
  #{options[:skip]}
86
82
  else
87
83
  #{options[:changed]}
88
- fi)
84
+ fi}
89
85
  end
90
86
 
91
87
  # Macro used later by :rails, :rake, etc
@@ -95,10 +91,10 @@ make_run_task = lambda { |name, example|
95
91
 
96
92
  arguments = args[:arguments]
97
93
  unless arguments
98
- puts %(You need to provide arguments. Try: mina "#{name}[#{example}]")
94
+ puts %{You need to provide arguments. Try: mina "#{name}[#{example}]"}
99
95
  exit 1
100
96
  end
101
- command %(cd "#{deploy_to!}/#{current_path!}" && #{fetch(name)} #{arguments})
97
+ command %{cd "#{deploy_to!}/#{current_path!}" && #{fetch(name)} #{arguments}}
102
98
  end
103
99
  }
104
100
 
data/tasks/mina/rbenv.rb CHANGED
@@ -1,13 +1,13 @@
1
1
  set :rbenv_path, "$HOME/.rbenv"
2
2
 
3
3
  task :'rbenv:load' do
4
- comment %(Loading rbenv)
5
- command %(export RBENV_ROOT="#{fetch(:rbenv_path)}")
6
- command %(export PATH="#{fetch(:rbenv_path)}/bin:$PATH")
7
- command %(if ! which rbenv >/dev/null; then
4
+ comment %{Loading rbenv}
5
+ command %{export RBENV_ROOT="#{fetch(:rbenv_path)}"}
6
+ command %{export PATH="#{fetch(:rbenv_path)}/bin:$PATH"}
7
+ command %{if ! which rbenv >/dev/null; then
8
8
  echo "! rbenv not found"
9
9
  echo "! If rbenv is installed, check your :rbenv_path setting."
10
10
  exit 1
11
- fi)
12
- command %(eval "$(rbenv init -)")
11
+ fi}
12
+ command %{eval "$(rbenv init -)"}
13
13
  end
data/tasks/mina/rvm.rb CHANGED
@@ -7,14 +7,14 @@ task :'rvm:use', :env do |_, args|
7
7
  exit 1
8
8
  end
9
9
 
10
- comment %(Using RVM environment \\\"#{args[:env]}\\\")
11
- command %(if [[ ! -s "#{fetch(:rvm_path)}" ]]; then
10
+ comment %{Using RVM environment \\\"#{args[:env]}\\\"}
11
+ command %{if [[ ! -s "#{fetch(:rvm_path)}" ]]; then
12
12
  echo "! Ruby Version Manager not found"
13
13
  echo "! If RVM is installed, check your :rvm_path setting."
14
14
  exit 1
15
- fi)
16
- command %(source #{fetch(:rvm_path)})
17
- comment %(rvm use \\"#{args[:env]}\\" --create)
15
+ fi}
16
+ command %{source #{fetch(:rvm_path)}}
17
+ comment %{rvm use \\"#{args[:env]}\\" --create}
18
18
  end
19
19
 
20
20
  task :'rvm:wrapper', :env, :name, :bin do |_, args|
@@ -24,12 +24,12 @@ task :'rvm:wrapper', :env, :name, :bin do |_, args|
24
24
  exit 1
25
25
  end
26
26
 
27
- comment %(creating RVM wrapper "#{args[:name]}_#{args[:bin]}" using \\"#{args[:env]}\\")
28
- command %(if [[ ! -s "#{fetch(:rvm_path)}" ]]; then
27
+ comment %{creating RVM wrapper "#{args[:name]}_#{args[:bin]}" using \\"#{args[:env]}\\"}
28
+ command %{if [[ ! -s "#{fetch(:rvm_path)}" ]]; then
29
29
  echo "! Ruby Version Manager not found"
30
30
  echo "! If RVM is installed, check your :rvm_path setting."
31
31
  exit 1
32
- fi)
33
- command %(source #{fetch(:rvm_path)})
34
- command %(rvm wrapper #{args[:env]} #{args[:name]} #{args[:bin]} || exit 1)
32
+ fi}
33
+ command %{source #{fetch(:rvm_path)}}
34
+ command %{rvm wrapper #{args[:env]} #{args[:name]} #{args[:bin]} || exit 1}
35
35
  end
data/tasks/mina/ry.rb CHANGED
@@ -5,18 +5,18 @@ task :ry, :env do |_, args|
5
5
  puts "Task 'ry' without argument will use default Ruby version."
6
6
  end
7
7
 
8
- comment %(ry to version: \\"#{args[:env] || '**not specified**'}\\")
9
- comment %(Loading ry)
8
+ comment %{ry to version: \\"#{args[:env] || '**not specified**'}\\"}
9
+ comment %{Loading ry}
10
10
 
11
- command %(if [[ ! -e "#{fetch(:ry_path)}/bin" ]]; then
11
+ command %{if [[ ! -e "#{fetch(:ry_path)}/bin" ]]; then
12
12
  echo "! ry not found"
13
13
  echo "! If ry is installed, check your :ry_path setting."
14
14
  exit 1
15
- fi)
16
- command %(export PATH="#{fetch(:ry_path)}/bin:$PATH")
17
- command %(eval "$(ry setup)")
18
- command %(RY_RUBY="#{args[:env]}")
19
- command %(if [ -n "$RY_RUBY" ]; then
15
+ fi}
16
+ command %{export PATH="#{fetch(:ry_path)}/bin:$PATH"}
17
+ command %{eval "$(ry setup)"}
18
+ command %{RY_RUBY="#{args[:env]}"}
19
+ command %{if [ -n "$RY_RUBY" ]; then
20
20
  #{echo_cmd 'ry use $RY_RUBY'} || exit 1
21
- fi)
21
+ fi}
22
22
  end
@@ -29,7 +29,7 @@ set :shared_paths, ['config/database.yml', 'log']
29
29
  set :keep_releases, 2
30
30
 
31
31
  task :environment do
32
- command %(eval "$(rbenv init -)")
32
+ command %{eval "$(rbenv init -)"}
33
33
  end
34
34
  #
35
35
  # desc "Deploys."
@@ -42,7 +42,7 @@ task deploy: :environment do
42
42
  invoke :'deploy:cleanup'
43
43
 
44
44
  on :launch do
45
- comment %(in launch)
45
+ comment %{in launch}
46
46
  end
47
47
  end
48
48
  end
@@ -50,12 +50,12 @@ end
50
50
  desc 'Task description'
51
51
  task :test do
52
52
  run :local do
53
- comment %(PWD)
53
+ comment %{PWD}
54
54
  in_path('/Users') do
55
- command %(ls -al)
55
+ command %{ls -al}
56
56
  end
57
57
  on :after do
58
- command %(pwd)
58
+ command %{pwd}
59
59
  end
60
60
  end
61
61
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mina
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta3
4
+ version: 1.0.0.beta4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stjepan Hadjić