mina 0.3.7 → 0.3.8
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 +4 -4
- data/CHANGELOG.md +32 -1
- data/Readme.md +1 -0
- data/data/deploy.rb +10 -6
- data/data/deploy.sh.erb +2 -2
- data/lib/mina/version.rb +1 -1
- data/lib/mina/whenever.rb +12 -9
- data/mina.gemspec +1 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15fd20b233f2b2e1faeb55ea0b0216cd6deba43a
|
4
|
+
data.tar.gz: e8052ad73893881c0e7b970519a610e5ffd05344
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f798d66b3493d96249331fdc8068c1903ad5474ca843ab16f374533b1dcda206ee0b9081054b034e48c43b362dbe58dfcb5401b36db2c5287f71b2036e97208
|
7
|
+
data.tar.gz: 1a5267b8ed1b5ecd78ea8c717206a25f582895dfded8b48539a157c524feaefc3c492fdb1c97e4d08e72b41ba2b5a4b4b868b958e186d17b9e4c72695064ea68
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,36 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [v0.3.8](https://github.com/mina-deploy/mina/tree/v0.3.8) (2016-01-04)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/mina-deploy/mina/compare/v0.3.7...v0.3.8)
|
6
|
+
|
7
|
+
**Merged pull requests:**
|
8
|
+
|
9
|
+
- Fixed bug where domain was not set yet when whenever_name was being called (set_default) causing multiple crontab entries [\#335](https://github.com/mina-deploy/mina/pull/335)
|
10
|
+
|
11
|
+
- Fix missing shell repo variable in setup [\#329](https://github.com/mina-deploy/mina/pull/329)
|
12
|
+
|
13
|
+
- Add license to gemspec [\#343](https://github.com/mina-deploy/mina/pull/343)
|
14
|
+
|
15
|
+
- Fix for starting server path [\#349](https://github.com/mina-deploy/mina/pull/349)
|
16
|
+
|
17
|
+
- Add mina-laravel to 3rd party modules [\#352](https://github.com/mina-deploy/mina/pull/352)
|
18
|
+
|
19
|
+
|
20
|
+
## [v0.3.7](https://github.com/mina-deploy/mina/tree/v0.3.7) (2015-07-08)
|
21
|
+
|
22
|
+
[Full Changelog](https://github.com/mina-deploy/mina/compare/v0.3.6...v0.3.7)
|
23
|
+
|
24
|
+
**Closed issues:**
|
25
|
+
|
26
|
+
- New setup project cannot deploy, "Failed with status 1 \(1\)" [\#328](https://github.com/mina-deploy/mina/issues/328)
|
27
|
+
|
28
|
+
- How to do mina rake task invocation if rake task has arguments? [\#325](https://github.com/mina-deploy/mina/issues/325)
|
29
|
+
|
30
|
+
- Git commit is lost after checkout [\#308](https://github.com/mina-deploy/mina/issues/308)
|
31
|
+
|
32
|
+
- Trust foreman binary [\#144](https://github.com/mina-deploy/mina/issues/144)
|
33
|
+
|
3
34
|
## [v0.3.6](https://github.com/mina-deploy/mina/tree/v0.3.6) (2015-07-05)
|
4
35
|
|
5
36
|
[Full Changelog](https://github.com/mina-deploy/mina/compare/v0.3.4...v0.3.6)
|
@@ -668,4 +699,4 @@
|
|
668
699
|
|
669
700
|
|
670
701
|
|
671
|
-
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
702
|
+
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
data/Readme.md
CHANGED
@@ -1123,6 +1123,7 @@ end
|
|
1123
1123
|
* [mina-faye](https://github.com/NingenUA/mina-faye)
|
1124
1124
|
* [mina-clockwork](https://github.com/907th/mina-clockwork)
|
1125
1125
|
* [mina-ftp](https://github.com/stas/mina-ftp)
|
1126
|
+
* [mina-laravel](https://github.com/kikyous/mina-laravel)
|
1126
1127
|
|
1127
1128
|
Acknowledgements
|
1128
1129
|
----------------
|
data/data/deploy.rb
CHANGED
@@ -52,12 +52,16 @@ task :setup => :environment do
|
|
52
52
|
queue! %[touch "#{deploy_to}/#{shared_path}/config/secrets.yml"]
|
53
53
|
queue %[echo "-----> Be sure to edit '#{deploy_to}/#{shared_path}/config/database.yml' and 'secrets.yml'."]
|
54
54
|
|
55
|
-
|
56
|
-
repo_host
|
57
|
-
repo_port
|
58
|
-
|
59
|
-
|
60
|
-
|
55
|
+
if repository
|
56
|
+
repo_host = repository.split(%r{@|://}).last.split(%r{:|\/}).first
|
57
|
+
repo_port = /:([0-9]+)/.match(repository) && /:([0-9]+)/.match(repository)[1] || '22'
|
58
|
+
|
59
|
+
queue %[
|
60
|
+
if ! ssh-keygen -H -F #{repo_host} &>/dev/null; then
|
61
|
+
ssh-keyscan -t rsa -p #{repo_port} -H #{repo_host} >> ~/.ssh/known_hosts
|
62
|
+
fi
|
63
|
+
]
|
64
|
+
end
|
61
65
|
end
|
62
66
|
|
63
67
|
desc "Deploys the current version to the server."
|
data/data/deploy.sh.erb
CHANGED
@@ -78,10 +78,10 @@ fi
|
|
78
78
|
) &&
|
79
79
|
|
80
80
|
# ============================
|
81
|
-
# === Start up
|
81
|
+
# === Start up server => (in deployer)
|
82
82
|
(
|
83
83
|
echo "-----> Launching"
|
84
|
-
<%= echo_cmd %[cd "
|
84
|
+
<%= echo_cmd %[cd "#{current_path}"] %>
|
85
85
|
<%= indent 2, (launch.empty? ? "true" : launch) %>
|
86
86
|
) &&
|
87
87
|
|
data/lib/mina/version.rb
CHANGED
data/lib/mina/whenever.rb
CHANGED
@@ -19,30 +19,33 @@
|
|
19
19
|
# Any and all of these settings can be overriden in your `deploy.rb`.
|
20
20
|
|
21
21
|
# ### whenever_name
|
22
|
-
#
|
23
|
-
|
24
|
-
set_default :whenever_name, "#{domain}_#{rails_env}"
|
22
|
+
# Override the default name used by Whenever when clearing,
|
23
|
+
# updating or writing the crontab file.
|
25
24
|
|
26
25
|
namespace :whenever do
|
26
|
+
# NOTE: setting this as a lambda to allow the user to override
|
27
|
+
# the domain variable at any time in their schedule.rb file
|
28
|
+
name = lambda { whenever_name || "#{domain}_#{rails_env}" }
|
29
|
+
|
27
30
|
desc "Clear crontab"
|
28
31
|
task :clear => :environment do
|
29
32
|
queue %{
|
30
|
-
echo "-----> Clear crontab for #{
|
31
|
-
#{echo_cmd %[cd #{deploy_to!}/#{current_path!} ; #{bundle_bin} exec whenever --clear-crontab #{
|
33
|
+
echo "-----> Clear crontab for #{name.call}"
|
34
|
+
#{echo_cmd %[cd #{deploy_to!}/#{current_path!} ; #{bundle_bin} exec whenever --clear-crontab #{name.call} --set 'environment=#{rails_env}&path=#{deploy_to!}/#{current_path!}']}
|
32
35
|
}
|
33
36
|
end
|
34
37
|
desc "Update crontab"
|
35
38
|
task :update => :environment do
|
36
39
|
queue %{
|
37
|
-
echo "-----> Update crontab for #{
|
38
|
-
#{echo_cmd %[cd #{deploy_to!}/#{current_path!} ; #{bundle_bin} exec whenever --update-crontab #{
|
40
|
+
echo "-----> Update crontab for #{name.call}"
|
41
|
+
#{echo_cmd %[cd #{deploy_to!}/#{current_path!} ; #{bundle_bin} exec whenever --update-crontab #{name.call} --set 'environment=#{rails_env}&path=#{deploy_to!}/#{current_path!}']}
|
39
42
|
}
|
40
43
|
end
|
41
44
|
desc "Write crontab"
|
42
45
|
task :write => :environment do
|
43
46
|
queue %{
|
44
|
-
echo "-----> Update crontab for #{
|
45
|
-
#{echo_cmd %[cd #{deploy_to!}/#{current_path!} ; #{bundle_bin} exec whenever --write-crontab #{
|
47
|
+
echo "-----> Update crontab for #{name.call}"
|
48
|
+
#{echo_cmd %[cd #{deploy_to!}/#{current_path!} ; #{bundle_bin} exec whenever --write-crontab #{name.call} --set 'environment=#{rails_env}&path=#{deploy_to!}/#{current_path!}']}
|
46
49
|
}
|
47
50
|
end
|
48
51
|
end
|
data/mina.gemspec
CHANGED
@@ -10,6 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.homepage = "http://github.com/nadarei/mina"
|
11
11
|
s.files = `git ls-files`.strip.split("\n")
|
12
12
|
s.executables = Dir["bin/*"].map { |f| File.basename(f) }
|
13
|
+
s.licenses = ['MIT']
|
13
14
|
|
14
15
|
s.add_dependency "rake"
|
15
16
|
s.add_dependency "open4", "~> 1.3.4"
|
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: 0.3.
|
4
|
+
version: 0.3.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rico Sta. Cruz
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-01-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -145,7 +145,8 @@ files:
|
|
145
145
|
- support/to_md.rb
|
146
146
|
- test_env/config/deploy.rb
|
147
147
|
homepage: http://github.com/nadarei/mina
|
148
|
-
licenses:
|
148
|
+
licenses:
|
149
|
+
- MIT
|
149
150
|
metadata: {}
|
150
151
|
post_install_message:
|
151
152
|
rdoc_options: []
|
@@ -163,9 +164,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
164
|
version: '0'
|
164
165
|
requirements: []
|
165
166
|
rubyforge_project:
|
166
|
-
rubygems_version: 2.
|
167
|
+
rubygems_version: 2.5.1
|
167
168
|
signing_key:
|
168
169
|
specification_version: 4
|
169
170
|
summary: Really fast deployer and server automation tool.
|
170
171
|
test_files: []
|
171
|
-
has_rdoc:
|