servicesnapshot 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/bin/servicesnapshot CHANGED
@@ -6,6 +6,7 @@ $:.unshift './'
6
6
  require "helper_functions"
7
7
  require "Snapshot/Ssh"
8
8
  require "Snapshot/Beanstalk"
9
+ require "Snapshot/Shell"
9
10
 
10
11
  #Don't buffer stdout
11
12
  $stdout.sync = true
@@ -0,0 +1,12 @@
1
+ require "net/ssh"
2
+
3
+ def shell( params )
4
+ usage = "shell :cmd=><cmd string>"
5
+ cmd = get_param( params, :cmd, usage )
6
+
7
+ # content = system cmd
8
+ content = `#{cmd}`
9
+
10
+ title = "shell: #{cmd}"
11
+ formatOutput( title, content )
12
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: servicesnapshot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-01 00:00:00.000000000 Z
12
+ date: 2014-01-08 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: The fastest way to get a snapshot of your system.
15
15
  email: guy@guyirvine.com
@@ -20,6 +20,7 @@ extra_rdoc_files: []
20
20
  files:
21
21
  - lib/helper_functions.rb
22
22
  - lib/Snapshot/Beanstalk.rb
23
+ - lib/Snapshot/Shell.rb
23
24
  - lib/Snapshot/Ssh.rb
24
25
  - bin/servicesnapshot
25
26
  - LICENSE