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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 94c8f41c2c2c2ca7892c4a32631754edbd688325
4
- data.tar.gz: 2ae932e067daaece50d4ded3bc5e426672f17df2
3
+ metadata.gz: 661301b756abdfa7df216b4c5f887524d90059dd
4
+ data.tar.gz: 41b21803c8685a67fa3b3ab022e1373c4dda0cbf
5
5
  SHA512:
6
- metadata.gz: ac23517374c9817c16fe40c9445495cccc77c46d2e748c583c7b37f1ffadab24677665d1d64e2a237173c7f9131c7c06b524bbaca4bd668928626e1f43663aae
7
- data.tar.gz: 494a5fd7385038ff0b36f00917b6b4b6788eee8ccaa4f00e8d3d6c9019a665cbadb02a8da5fd31678d5fd7a58c51865869554e353d8928a453c8ba1bcd6d7b70
6
+ metadata.gz: d33e07d1eca2b3743834b7c7c1a727097ed306f7eeb2f5c3e8a99eb3461693302a81020324900dbee6fefbdbcfb518fb5dff95cf837f0ee9930b30b96457bebe
7
+ data.tar.gz: 45a8b1d2c40f93ebf045de657080c5c5e4b1b922fb83ee01aa5b6ce33872870d1dc6ca21a693a26bac0499495323daa20f176ee11122321f6f1b2e36079175ad
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.3.0
4
+
5
+ ### Features
6
+
7
+ - Added command to run top on a server
8
+ - Added command to run any command on a server
9
+
3
10
  ## v1.2.1
4
11
 
5
12
  ### Bug Fixes
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
@@ -1,3 +1,3 @@
1
1
  module Karo
2
- VERSION = "1.2.1"
2
+ VERSION = "1.3.0"
3
3
  end
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.2.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-01 00:00:00.000000000 Z
11
+ date: 2013-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry