mina 1.1.1 → 1.2.0

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: a8e3584da2d31b1b70ff908f1e5223e37a2034ca
4
- data.tar.gz: 52da7dda197b119ab8c9486a56ae35152a277b3e
3
+ metadata.gz: 78dfaf6b25901beed40266a0deba7e6ded4bb183
4
+ data.tar.gz: 2aff294f4e659e7a5062c9fc690f0a0f018fdd82
5
5
  SHA512:
6
- metadata.gz: 04cf108efdab175126c0ffdb0a4a4c71e5b5b1fa44c81e17bc3cd18365a069d7cbcadae20f58799fbc0898b1b9e694ffc8f5ffa1fac90e759d86282bcd184cb7
7
- data.tar.gz: 3a70c0a587acff45074a6cc0dafe1ae53f8314d2113e5d7d88fec008d9cecd411233dfb2be79b8c66d0399af492f29954f2926f8a5e78d72cb28d615323eed0d
6
+ metadata.gz: c782b741751373f9104bed32ba393083530ef6354ef9011a0cf38730bd166b2b142a2b7c484c80b3cefffb5025f2d418efaa874320231d4bee8c14f41dd7a142
7
+ data.tar.gz: 97384c2971656ae369593f398190c1fb5c03d573b5cb9a3ffe8c6baa71c1c3f1fe3064f984839020d8660bcd343ea7cb4b9837b5e5c2a0aceb72e054cf74f06d
@@ -164,7 +164,7 @@ When writing your tasks you can choose on which backend you want your scripts to
164
164
 
165
165
  Backend | Description
166
166
  --------|---------
167
- `:remote` | Run on your server over SSH
167
+ `:remote` | Run on your server over SSH (Default)
168
168
  `:local` | Run on your machine
169
169
 
170
170
  Choosing on which backend a particular block is ran is defined in [`run(backend) do` block](writing_your_own_tasks.rb#run)
@@ -190,4 +190,13 @@ end
190
190
 
191
191
  `deploy do` block is a wrapper around `run(:backend) do` block.
192
192
 
193
+ If a tasks is created without a `run do` block, `:remote` backend is assumed:
194
+
195
+ ``` ruby
196
+ task :example do
197
+ command "passenger-configure restart-app"
198
+ end
199
+ ```
200
+
201
+ The above command will be run on your server.
193
202
 
@@ -1,3 +1,3 @@
1
1
  module Mina
2
- VERSION = '1.1.1'.freeze
2
+ VERSION = '1.2.0'.freeze
3
3
  end
@@ -58,7 +58,7 @@ task :ssh_keyscan_domain do
58
58
  run :local do
59
59
  command %{
60
60
  if ! ssh-keygen -H -F #{fetch(:domain)} &>/dev/null; then
61
- ssh-keyscan -t rsa -p #{fetch(:port)} -H #{fetch(:domain)} >> ~/.ssh/known_hosts
61
+ ssh-keyscan -p #{fetch(:port)} #{fetch(:domain)} >> ~/.ssh/known_hosts
62
62
  fi
63
63
  }
64
64
  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.1.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stjepan Hadjić