dockland 0.0.1 → 0.1.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 +4 -4
- data/README.md +18 -12
- data/lib/dockland/cli.rb +6 -7
- data/lib/dockland/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 907e0e3617b1cc30019c5372adb9f25141ad6bd2
|
4
|
+
data.tar.gz: a1d0bf00df87d99988e192a03b38fd7936f165ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb1ea5c5029f25827a1df65a179190281ba71669d933ce2b2d23199c83e7c156a4c95a30d59134607741fa6d5d91b064a06a4c5ad68684c41df7b562fca7d873
|
7
|
+
data.tar.gz: 889a5b5f832ea7b790f3974698e7c22150c94f08557b145436882c069f11087aae091e3e4cce5800f44f0f31fbf817bee6bab2f8f88c52bd971cd6c8f76bab5f
|
data/README.md
CHANGED
@@ -4,21 +4,27 @@ dokku pipeline
|
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
And then execute:
|
12
|
-
|
13
|
-
$ bundle
|
14
|
-
|
15
|
-
Or install it yourself as:
|
16
|
-
|
17
|
-
$ gem install dockland
|
7
|
+
```zsh
|
8
|
+
$ gem install dockland
|
9
|
+
```
|
18
10
|
|
19
11
|
## Usage
|
20
12
|
|
21
|
-
|
13
|
+
```zsh
|
14
|
+
$ cd dokku-ready-project
|
15
|
+
$ git config remote.dokku.url
|
16
|
+
dokku@example.com:dokku-ready-project
|
17
|
+
$ dockland config:add KEY1=VALUE
|
18
|
+
-----> Setting config vars and restarting dokku-ready-project
|
19
|
+
KEY1: VALUE
|
20
|
+
-----> Releasing dokku-ready-project ...
|
21
|
+
-----> Release complete!
|
22
|
+
-----> Deploying dokku-ready-project ...
|
23
|
+
-----> Deploy complete!
|
24
|
+
$ dockland config
|
25
|
+
=== dokku-ready-project config vars ===
|
26
|
+
KEY1: VALUE
|
27
|
+
```
|
22
28
|
|
23
29
|
## Contributing
|
24
30
|
|
data/lib/dockland/cli.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
require 'thor'
|
2
|
-
require 'open3'
|
3
2
|
|
4
3
|
module Dockland
|
5
4
|
class CLI < Thor
|
@@ -7,16 +6,16 @@ module Dockland
|
|
7
6
|
desc 'info', 'Show info'
|
8
7
|
def info
|
9
8
|
remote = Dockland.dokku_remote
|
10
|
-
puts remote
|
9
|
+
puts "Remote : #{remote[:username]}@#{remote[:host]}:#{remote[:app_name]}"
|
10
|
+
puts "Host : #{remote[:host]}"
|
11
|
+
puts "AppName: #{remote[:app_name]}"
|
11
12
|
end
|
12
13
|
|
13
14
|
def method_missing(*args)
|
15
|
+
command, *opt = args
|
14
16
|
remote = Dockland.dokku_remote
|
15
|
-
lines =
|
16
|
-
lines.
|
17
|
-
lines = lines.map(&:strip).join("\n")
|
18
|
-
|
19
|
-
puts lines
|
17
|
+
lines = `ssh -t #{remote[:username]}@#{remote[:host]} #{command.to_s} #{remote[:app_name]} #{opt.join(' ')} 2> /dev/null`
|
18
|
+
puts lines.strip
|
20
19
|
end
|
21
20
|
|
22
21
|
end
|
data/lib/dockland/version.rb
CHANGED