karo 1.2.1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of karo might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/karo/cli.rb +20 -0
- data/lib/karo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 661301b756abdfa7df216b4c5f887524d90059dd
|
4
|
+
data.tar.gz: 41b21803c8685a67fa3b3ab022e1373c4dda0cbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d33e07d1eca2b3743834b7c7c1a727097ed306f7eeb2f5c3e8a99eb3461693302a81020324900dbee6fefbdbcfb518fb5dff95cf837f0ee9930b30b96457bebe
|
7
|
+
data.tar.gz: 45a8b1d2c40f93ebf045de657080c5c5e4b1b922fb83ee01aa5b6ce33872870d1dc6ca21a693a26bac0499495323daa20f176ee11122321f6f1b2e36079175ad
|
data/CHANGELOG.md
CHANGED
data/lib/karo/cli.rb
CHANGED
@@ -78,6 +78,26 @@ module Karo
|
|
78
78
|
system "#{ssh} '#{cmd}'"
|
79
79
|
end
|
80
80
|
|
81
|
+
desc "top", "run top command on a given server environment"
|
82
|
+
def top
|
83
|
+
configuration = Config.load_configuration(options)
|
84
|
+
|
85
|
+
path = File.join(configuration["path"], "current")
|
86
|
+
ssh = "ssh #{configuration["user"]}@#{configuration["host"]} -t"
|
87
|
+
cmd = "top"
|
88
|
+
system "#{ssh} '#{cmd}'"
|
89
|
+
end
|
90
|
+
|
91
|
+
desc "on", "run any command within a given server environment"
|
92
|
+
def on(*tokens)
|
93
|
+
configuration = Config.load_configuration(options)
|
94
|
+
|
95
|
+
path = File.join(configuration["path"], "current")
|
96
|
+
ssh = "ssh #{configuration["user"]}@#{configuration["host"]}"
|
97
|
+
cmd = tokens.join(" ")
|
98
|
+
system "#{ssh} '#{cmd}'"
|
99
|
+
end
|
100
|
+
|
81
101
|
desc "version", "displays karo's current version"
|
82
102
|
def version
|
83
103
|
say Karo::VERSION
|
data/lib/karo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: karo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rahul Trikha
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-07-
|
11
|
+
date: 2013-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|