dokku-installer-cli 0.0.6 → 0.0.7

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: 1e680fb8095ae57d0c8283dcfda2bfea0850309d
4
- data.tar.gz: a40ff8c42b02a94a53d63dd9bf52762d4c20cdc3
3
+ metadata.gz: 43d7f01230c81b0604d1aa355385f1201df43484
4
+ data.tar.gz: c43b73a686ab83e0d8cd99829d808ad81943de8d
5
5
  SHA512:
6
- metadata.gz: 19fdd8dcfef693f7f5ec7233aa08fa068179cbc15cbf81c8315eb64acbf4b905db876ae7d7b3e36e967f2b6ffae70e541fa90cb14e5c2ea2ca5ed5b3930c3d57
7
- data.tar.gz: 62fb6b3b51241d7841d86b7b0a0adbc9211aa7a9b7e94a94129afdde2719a52d2d8846834a9812fec4a5af9607543edc883f6a3788d6ba179f036fe480b379c8
6
+ metadata.gz: 87a6a3522696b1591515e32118cdc3b67a78f426b57b8704078b6ab0880f33c206f27d43d6504ae2159900a28cb1c3be2018d5e680c4c2fbf7abceaa5cb3bb71
7
+ data.tar.gz: 8cd7ef521f8c6bb0242eef8d00301dca5df229d7702ee6976215764128849cb2bc983837cbab54b2afdc013eec1a00392814313f99f1c8e3cea079bf68301d28
data/bin/dokku CHANGED
@@ -37,7 +37,13 @@ module DokkuInstaller
37
37
 
38
38
  desc "logs [-t]", "Show the last logs for the application (-t follows)"
39
39
  def logs(*args)
40
- run_command "logs #{app_name} #{args.join(' ')}"
40
+ if args.first && args.first.strip == "-t"
41
+ command = "ssh dokku@#{domain} logs #{app_name} -t"
42
+ puts "Running #{command}..."
43
+ exec(command)
44
+ else
45
+ run_command "logs #{app_name}"
46
+ end
41
47
  end
42
48
 
43
49
  desc "open", "Open the application in your default browser"
@@ -52,7 +58,15 @@ module DokkuInstaller
52
58
 
53
59
  desc "run <cmd>", "Run a command in the environment of the application"
54
60
  def walk(*args)
55
- run_command "run #{app_name} #{args.join(' ')}"
61
+ command = "#{args.join(' ')}"
62
+ case command.gsub(" ", "")
63
+ when "rakedb:drop"
64
+ puts "You cannot use `rake db:drop`. Use Dokku directly to delete the database."
65
+ when "rakedb:create"
66
+ puts "You cannot use `rake db:create`. Use Dokku directly to create the database."
67
+ else
68
+ run_command "run #{app_name} #{command}"
69
+ end
56
70
  end
57
71
 
58
72
  desc "ssl:certificate <file path>", "Add a signed certificate for SSL (server.crt)"
@@ -1,3 +1,3 @@
1
1
  module DokkuInstaller
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dokku-installer-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Pattison
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-21 00:00:00.000000000 Z
11
+ date: 2014-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor