dockland 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b53590d42aaa6df76c4609d1ba77afd0e350e10
4
- data.tar.gz: 9c2f25b7474e4b320be2444e330b3411eed993de
3
+ metadata.gz: 907e0e3617b1cc30019c5372adb9f25141ad6bd2
4
+ data.tar.gz: a1d0bf00df87d99988e192a03b38fd7936f165ed
5
5
  SHA512:
6
- metadata.gz: a95dc15a9e8d2168d8c35f3572e5ea8518b139e1151773d40708ff8b668dec8cef94a552966180c2640f3206eea5d65f89a81918b9969cdea7e24b2dd78e93c9
7
- data.tar.gz: 4105c0387b8a84138b59589eca597645442231ccb623ce18c3806a25ecf06073b22322cbd546a4baecb301dbaa3a7c46f86d04b11f8550ac1d8ca1931c73ee2c
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
- Add this line to your application's Gemfile:
8
-
9
- gem 'dockland'
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
- TODO: Write usage instructions here
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 = Open3.capture3(%|ssh -t #{remote[:username]}@#{remote[:host]} #{args.first.to_s} #{remote[:app_name]}|)
16
- lines.pop(2)
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
@@ -1,3 +1,3 @@
1
1
  module Dockland
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dockland
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - oame