mina 1.0.0.beta2 → 1.0.0.beta3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +384 -0
- data/Readme.md +3 -3
- data/data/deploy.rb +8 -6
- data/data/deploy.sh.erb +1 -1
- data/docs/3rd_party_plugins.md +2 -0
- data/docs/getting_started.md +22 -0
- data/docs/migrating.md +1 -1
- data/lib/mina.rb +3 -3
- data/lib/mina/application.rb +1 -0
- data/lib/mina/backend/remote.rb +6 -6
- data/lib/mina/commands.rb +4 -3
- data/lib/mina/configuration.rb +2 -1
- data/lib/mina/dsl.rb +8 -1
- data/lib/mina/helpers/internal.rb +8 -3
- data/lib/mina/helpers/output.rb +4 -0
- data/lib/mina/runner/pretty.rb +1 -1
- data/lib/mina/runner/printer.rb +1 -0
- data/lib/mina/version.rb +1 -1
- data/mina.gemspec +1 -1
- data/spec/lib/mina/application_spec.rb +35 -35
- data/spec/lib/mina/backend/local_spec.rb +1 -0
- data/spec/lib/mina/backend/remote_spec.rb +2 -0
- data/spec/lib/mina/commands_spec.rb +6 -7
- data/spec/lib/mina/configuration_spec.rb +1 -1
- data/spec/lib/mina/helpers/internal_spec.rb +3 -1
- data/spec/lib/mina/helpers/output_spec.rb +5 -20
- data/spec/lib/mina/runner_spec.rb +1 -4
- data/spec/spec_helper.rb +14 -3
- data/spec/support/outputs/bundle_clean.txt +2 -0
- data/spec/support/outputs/bundle_install.txt +2 -0
- data/spec/support/outputs/chruby.txt +9 -0
- data/spec/support/outputs/console.txt +1 -0
- data/spec/support/outputs/deploy_cleanup.txt +2 -0
- data/spec/support/outputs/deploy_force_unlock.txt +2 -0
- data/spec/support/outputs/deploy_link_shared_paths.txt +13 -0
- data/spec/support/outputs/git_clone.txt +1 -0
- data/spec/support/outputs/git_clone_commit.txt +1 -0
- data/spec/support/outputs/git_revision.txt +1 -0
- data/spec/support/outputs/log.txt +1 -0
- data/spec/support/outputs/rails_assets_precompile.txt +1 -0
- data/spec/support/outputs/rails_db_create.txt +2 -0
- data/spec/support/outputs/rails_db_migrate.txt +1 -0
- data/spec/support/outputs/rails_db_rollback.txt +2 -0
- data/spec/support/outputs/rbenv_load.txt +1 -0
- data/spec/support/outputs/rollback.txt +2 -0
- data/spec/support/outputs/run.txt +1 -0
- data/spec/support/outputs/rvm_use.txt +1 -0
- data/spec/support/outputs/ry.txt +15 -0
- data/spec/support/outputs/setup.txt +14 -0
- data/spec/support/outputs/ssh_keyscan.txt +3 -0
- data/spec/support/rake_example_group.rb +30 -0
- data/spec/tasks/bundler_spec.rb +15 -0
- data/spec/tasks/default_spec.rb +35 -0
- data/spec/tasks/deploy_spec.rb +33 -0
- data/spec/tasks/git_spec.rb +21 -0
- data/spec/tasks/init_spec.rb +16 -0
- data/spec/tasks/rails_spec.rb +45 -0
- data/spec/tasks/ruby_managers_spec.rb +33 -0
- data/tasks/mina/bundler.rb +5 -5
- data/tasks/mina/chruby.rb +8 -10
- data/tasks/mina/default.rb +5 -1
- data/tasks/mina/deploy.rb +33 -29
- data/tasks/mina/git.rb +20 -8
- data/tasks/mina/install.rb +1 -0
- data/tasks/mina/rails.rb +15 -15
- data/tasks/mina/rbenv.rb +6 -8
- data/tasks/mina/rvm.rb +16 -20
- data/tasks/mina/ry.rb +10 -14
- data/test_env/config/deploy.rb +5 -5
- metadata +35 -6
- data/spec/lib/mina_spec.rb +0 -7
- data/spec/support/run_helper.rb +0 -36
data/tasks/mina/default.rb
CHANGED
@@ -5,6 +5,10 @@ task run_commands: :environment do
|
|
5
5
|
commands.run(:remote) unless commands.queue.empty?
|
6
6
|
end
|
7
7
|
|
8
|
+
task :reset! do
|
9
|
+
reset!
|
10
|
+
end
|
11
|
+
|
8
12
|
task debug_configuration_variables: :environment do
|
9
13
|
if fetch(:debug_configuration_variables)
|
10
14
|
puts
|
@@ -45,5 +49,5 @@ end
|
|
45
49
|
|
46
50
|
desc 'Open an ssh session to the server and cd to deploy_to folder'
|
47
51
|
task ssh: :environment do
|
48
|
-
exec Mina::Backend::Remote.new(nil).ssh + "
|
52
|
+
exec Mina::Backend::Remote.new(nil).ssh + %( "cd #{fetch(:deploy_to)} && exec $SHELL")
|
49
53
|
end
|
data/tasks/mina/deploy.rb
CHANGED
@@ -6,28 +6,28 @@ set :current_path, -> { "#{fetch(:deploy_to)}/current" }
|
|
6
6
|
set :lock_file, 'deploy.lock'
|
7
7
|
set :deploy_script, 'data/deploy.sh.erb'
|
8
8
|
set :keep_releases, 5
|
9
|
-
set :version_scheme, :
|
9
|
+
set :version_scheme, :sequence
|
10
10
|
set :execution_mode, :pretty
|
11
11
|
|
12
12
|
namespace :deploy do
|
13
13
|
desc 'Forces a deploy unlock.'
|
14
14
|
task force_unlock: :environment do
|
15
|
-
comment
|
16
|
-
command
|
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
|
21
|
+
comment %(Symlinking shared paths)
|
22
22
|
|
23
23
|
fetch(:shared_dirs, []).each do |linked_dir|
|
24
24
|
command %(mkdir -p #{File.dirname("./#{linked_dir}")})
|
25
|
-
command
|
26
|
-
command
|
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
|
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
|
39
|
+
comment %(Cleaning up old releases (keeping #{fetch(:keep_releases)}))
|
40
40
|
in_path "#{fetch(:releases_path)}" do
|
41
|
-
command
|
42
|
-
command
|
43
|
-
command
|
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
|
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
|
55
|
-
comment
|
56
|
-
command
|
57
|
-
command
|
58
|
-
comment
|
59
|
-
command
|
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,23 +64,27 @@ desc 'Sets up a site.'
|
|
64
64
|
task setup: :environment do
|
65
65
|
ensure!(:deploy_to)
|
66
66
|
|
67
|
-
comment
|
68
|
-
command
|
69
|
-
command
|
70
|
-
command
|
71
|
-
command
|
72
|
-
command
|
73
|
-
command
|
74
|
-
command
|
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
|
79
|
-
command
|
78
|
+
command %(mkdir -p "#{linked_dir}")
|
79
|
+
command %(chmod g+rx,u+rwx "#{linked_dir}")
|
80
|
+
end
|
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)}")
|
80
84
|
end
|
81
85
|
end
|
82
86
|
|
83
|
-
command
|
87
|
+
command %(tree "#{fetch(:deploy_to)}" || ls -al "#{fetch(:deploy_to)}")
|
84
88
|
|
85
89
|
invoke :ssh_keyscan
|
86
90
|
end
|
data/tasks/mina/git.rb
CHANGED
@@ -2,6 +2,8 @@ require 'mina/default'
|
|
2
2
|
|
3
3
|
set :branch, 'master'
|
4
4
|
set :remove_git_dir, true
|
5
|
+
set :remote, 'origin'
|
6
|
+
set :git_not_pushed_message, -> { "Your branch #{fetch(:branch)} needs to be pushed to #{fetch(:remote)} before deploying" }
|
5
7
|
|
6
8
|
namespace :git do
|
7
9
|
desc 'Clones the Git repository to the release path.'
|
@@ -9,9 +11,9 @@ namespace :git do
|
|
9
11
|
ensure!(:repository)
|
10
12
|
ensure!(:deploy_to)
|
11
13
|
if set?(:commit)
|
12
|
-
comment
|
13
|
-
command
|
14
|
-
command
|
14
|
+
comment %(Using git commit \\"#{fetch(:commit)}\\")
|
15
|
+
command %(git clone "#{fetch(:repository)}" . --recursive)
|
16
|
+
command %(git checkout -b current_release "#{fetch(:commit)}" --force)
|
15
17
|
else
|
16
18
|
command %(if [ ! -d "#{fetch(:deploy_to)}/scm/objects" ]; then
|
17
19
|
echo "-----> Cloning the Git repository"
|
@@ -24,16 +26,26 @@ namespace :git do
|
|
24
26
|
#{echo_cmd %[git clone "#{fetch(:deploy_to)}/scm" . --recursive --branch "#{fetch(:branch)}"]}), quiet: true
|
25
27
|
end
|
26
28
|
|
27
|
-
comment
|
28
|
-
command
|
29
|
-
command
|
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)
|
30
32
|
if fetch(:remove_git_dir)
|
31
|
-
command
|
33
|
+
command %(rm -rf .git)
|
32
34
|
end
|
33
35
|
end
|
34
36
|
|
35
37
|
task revision: :environment do
|
36
38
|
ensure!(:deploy_to)
|
37
|
-
command
|
39
|
+
command %(cat #{fetch(:current_path)}/.mina_git_revision)
|
40
|
+
end
|
41
|
+
|
42
|
+
task ensure_pushed: :environment do
|
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
|
46
|
+
echo "! #{fetch(:git_not_pushed_message)}"
|
47
|
+
exit 1
|
48
|
+
fi)
|
49
|
+
end
|
38
50
|
end
|
39
51
|
end
|
data/tasks/mina/install.rb
CHANGED
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, -> {
|
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
|
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
|
26
|
+
command %(tail -f #{fetch(:rails_env)}.log)
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
@@ -31,14 +31,14 @@ namespace :rails do
|
|
31
31
|
desc 'Migrate database'
|
32
32
|
task db_migrate: :environment do
|
33
33
|
if fetch(:force_migrate)
|
34
|
-
comment
|
35
|
-
command
|
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:
|
39
|
+
skip: %(echo "-----> DB migrations unchanged; skipping DB migration"),
|
40
40
|
changed: %(
|
41
|
-
echo
|
41
|
+
echo "-----> Migrating database"
|
42
42
|
#{echo_cmd("#{fetch(:rake)} db:migrate")}
|
43
43
|
)
|
44
44
|
), quiet: true
|
@@ -47,25 +47,25 @@ namespace :rails do
|
|
47
47
|
|
48
48
|
desc 'Create database'
|
49
49
|
task db_create: :environment do
|
50
|
-
comment
|
51
|
-
command
|
50
|
+
comment %(Creating database)
|
51
|
+
command %(#{fetch(:rake)} db:create)
|
52
52
|
end
|
53
53
|
|
54
54
|
desc 'Rollback database'
|
55
55
|
task db_rollback: :environment do
|
56
|
-
comment
|
57
|
-
command
|
56
|
+
comment %(Rollbacking database)
|
57
|
+
command %(#{fetch(:rake)} db:rollback)
|
58
58
|
end
|
59
59
|
|
60
60
|
desc 'Precompiles assets (skips if nothing has changed since the last release).'
|
61
61
|
task assets_precompile: :environment do
|
62
62
|
if fetch(:force_asset_precompile)
|
63
|
-
comment
|
64
|
-
command
|
63
|
+
comment %(Precompiling asset files)
|
64
|
+
command %(#{fetch(:rake)} assets:precompile)
|
65
65
|
else
|
66
66
|
command check_for_changes_script(
|
67
67
|
at: fetch(:asset_dirs),
|
68
|
-
skip:
|
68
|
+
skip: %(echo "-----> Skipping asset precompilation"),
|
69
69
|
changed: %(
|
70
70
|
echo "-----> Precompiling asset files"
|
71
71
|
#{echo_cmd "#{fetch(:rake)} assets:precompile"}
|
@@ -77,7 +77,7 @@ end
|
|
77
77
|
|
78
78
|
def check_for_changes_script(options)
|
79
79
|
diffs = options[:at].map do |path|
|
80
|
-
|
80
|
+
%(diff -qrN "#{fetch(:current_path)}/#{path}" "./#{path}" 2>/dev/null)
|
81
81
|
end.join(' && ')
|
82
82
|
|
83
83
|
%(if #{diffs}
|
data/tasks/mina/rbenv.rb
CHANGED
@@ -1,15 +1,13 @@
|
|
1
1
|
set :rbenv_path, "$HOME/.rbenv"
|
2
2
|
|
3
3
|
task :'rbenv:load' do
|
4
|
-
comment
|
5
|
-
command
|
6
|
-
command
|
7
|
-
command %(
|
8
|
-
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
|
9
8
|
echo "! rbenv not found"
|
10
9
|
echo "! If rbenv is installed, check your :rbenv_path setting."
|
11
10
|
exit 1
|
12
|
-
fi
|
13
|
-
)
|
14
|
-
command 'eval "$(rbenv init -)"'
|
11
|
+
fi)
|
12
|
+
command %(eval "$(rbenv init -)")
|
15
13
|
end
|
data/tasks/mina/rvm.rb
CHANGED
@@ -2,38 +2,34 @@ set :rvm_path, '$HOME/.rvm/scripts/rvm'
|
|
2
2
|
|
3
3
|
task :'rvm:use', :env do |_, args|
|
4
4
|
unless args[:env]
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
puts "Task 'rvm:use' needs an RVM environment name as an argument."
|
6
|
+
puts "Example: invoke :'rvm:use[ruby-1.9.2@default]'"
|
7
|
+
exit 1
|
8
8
|
end
|
9
9
|
|
10
|
-
comment
|
11
|
-
command %(
|
12
|
-
if [[ ! -s "#{fetch(:rvm_path)}" ]]; then
|
10
|
+
comment %(Using RVM environment \\\"#{args[:env]}\\\")
|
11
|
+
command %(if [[ ! -s "#{fetch(:rvm_path)}" ]]; then
|
13
12
|
echo "! Ruby Version Manager not found"
|
14
13
|
echo "! If RVM is installed, check your :rvm_path setting."
|
15
14
|
exit 1
|
16
|
-
fi
|
17
|
-
)
|
18
|
-
|
19
|
-
command "rvm use '#{args[:env]}' --create"
|
15
|
+
fi)
|
16
|
+
command %(source #{fetch(:rvm_path)})
|
17
|
+
comment %(rvm use \\"#{args[:env]}\\" --create)
|
20
18
|
end
|
21
19
|
|
22
20
|
task :'rvm:wrapper', :env, :name, :bin do |_, args|
|
23
21
|
unless args[:env] && args[:name] && args[:bin]
|
24
|
-
|
25
|
-
|
26
|
-
|
22
|
+
puts "Task 'rvm:wrapper' needs an RVM environment name, an wrapper name and the binary name as arguments"
|
23
|
+
puts "Example: invoke :'rvm:wrapper[ruby-1.9.2@myapp,myapp,unicorn_rails]'"
|
24
|
+
exit 1
|
27
25
|
end
|
28
26
|
|
29
|
-
comment
|
30
|
-
command %(
|
31
|
-
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
|
32
29
|
echo "! Ruby Version Manager not found"
|
33
30
|
echo "! If RVM is installed, check your :rvm_path setting."
|
34
31
|
exit 1
|
35
|
-
fi
|
36
|
-
)
|
37
|
-
command
|
38
|
-
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)
|
39
35
|
end
|
data/tasks/mina/ry.rb
CHANGED
@@ -2,25 +2,21 @@ set :ry_path, '$HOME/.local'
|
|
2
2
|
|
3
3
|
task :ry, :env do |_, args|
|
4
4
|
unless args[:env]
|
5
|
-
|
5
|
+
puts "Task 'ry' without argument will use default Ruby version."
|
6
6
|
end
|
7
7
|
|
8
|
-
comment
|
9
|
-
comment
|
8
|
+
comment %(ry to version: \\"#{args[:env] || '**not specified**'}\\")
|
9
|
+
comment %(Loading ry)
|
10
10
|
|
11
|
-
command %(
|
12
|
-
if [[ ! -e "#{fetch(:ry_path)}/bin" ]]; then
|
11
|
+
command %(if [[ ! -e "#{fetch(:ry_path)}/bin" ]]; then
|
13
12
|
echo "! ry not found"
|
14
13
|
echo "! If ry is installed, check your :ry_path setting."
|
15
14
|
exit 1
|
16
|
-
fi
|
17
|
-
)
|
18
|
-
command "
|
19
|
-
command
|
20
|
-
command "RY_RUBY
|
21
|
-
command %(
|
22
|
-
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
|
23
20
|
#{echo_cmd 'ry use $RY_RUBY'} || exit 1
|
24
|
-
fi
|
25
|
-
)
|
21
|
+
fi)
|
26
22
|
end
|
data/test_env/config/deploy.rb
CHANGED
@@ -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
|
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
|
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
|
53
|
+
comment %(PWD)
|
54
54
|
in_path('/Users') do
|
55
|
-
command
|
55
|
+
command %(ls -al)
|
56
56
|
end
|
57
57
|
on :after do
|
58
|
-
command
|
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.
|
4
|
+
version: 1.0.0.beta3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stjepan Hadjić
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2016-
|
14
|
+
date: 2016-08-28 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rake
|
@@ -47,14 +47,14 @@ dependencies:
|
|
47
47
|
requirements:
|
48
48
|
- - "~>"
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version: 3.
|
50
|
+
version: 3.5.0
|
51
51
|
type: :development
|
52
52
|
prerelease: false
|
53
53
|
version_requirements: !ruby/object:Gem::Requirement
|
54
54
|
requirements:
|
55
55
|
- - "~>"
|
56
56
|
- !ruby/object:Gem::Version
|
57
|
-
version: 3.
|
57
|
+
version: 3.5.0
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: pry-byebug
|
60
60
|
requirement: !ruby/object:Gem::Requirement
|
@@ -112,6 +112,7 @@ files:
|
|
112
112
|
- ".gitignore"
|
113
113
|
- ".rspec"
|
114
114
|
- ".rubocop.yml"
|
115
|
+
- CHANGELOG.md
|
115
116
|
- Gemfile
|
116
117
|
- LICENSE
|
117
118
|
- PRE_1_CHANGELOG.md
|
@@ -154,9 +155,37 @@ files:
|
|
154
155
|
- spec/lib/mina/helpers/internal_spec.rb
|
155
156
|
- spec/lib/mina/helpers/output_spec.rb
|
156
157
|
- spec/lib/mina/runner_spec.rb
|
157
|
-
- spec/lib/mina_spec.rb
|
158
158
|
- spec/spec_helper.rb
|
159
|
-
- spec/support/
|
159
|
+
- spec/support/outputs/bundle_clean.txt
|
160
|
+
- spec/support/outputs/bundle_install.txt
|
161
|
+
- spec/support/outputs/chruby.txt
|
162
|
+
- spec/support/outputs/console.txt
|
163
|
+
- spec/support/outputs/deploy_cleanup.txt
|
164
|
+
- spec/support/outputs/deploy_force_unlock.txt
|
165
|
+
- spec/support/outputs/deploy_link_shared_paths.txt
|
166
|
+
- spec/support/outputs/git_clone.txt
|
167
|
+
- spec/support/outputs/git_clone_commit.txt
|
168
|
+
- spec/support/outputs/git_revision.txt
|
169
|
+
- spec/support/outputs/log.txt
|
170
|
+
- spec/support/outputs/rails_assets_precompile.txt
|
171
|
+
- spec/support/outputs/rails_db_create.txt
|
172
|
+
- spec/support/outputs/rails_db_migrate.txt
|
173
|
+
- spec/support/outputs/rails_db_rollback.txt
|
174
|
+
- spec/support/outputs/rbenv_load.txt
|
175
|
+
- spec/support/outputs/rollback.txt
|
176
|
+
- spec/support/outputs/run.txt
|
177
|
+
- spec/support/outputs/rvm_use.txt
|
178
|
+
- spec/support/outputs/ry.txt
|
179
|
+
- spec/support/outputs/setup.txt
|
180
|
+
- spec/support/outputs/ssh_keyscan.txt
|
181
|
+
- spec/support/rake_example_group.rb
|
182
|
+
- spec/tasks/bundler_spec.rb
|
183
|
+
- spec/tasks/default_spec.rb
|
184
|
+
- spec/tasks/deploy_spec.rb
|
185
|
+
- spec/tasks/git_spec.rb
|
186
|
+
- spec/tasks/init_spec.rb
|
187
|
+
- spec/tasks/rails_spec.rb
|
188
|
+
- spec/tasks/ruby_managers_spec.rb
|
160
189
|
- tasks/mina/bundler.rb
|
161
190
|
- tasks/mina/chruby.rb
|
162
191
|
- tasks/mina/default.rb
|