cloulu 0.1.6 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/vmc/cli.rb +6 -0
- data/lib/vmc/cli/app/env.rb +2 -2
- data/lib/vmc/cli/app/files.rb +3 -3
- data/lib/vmc/cli/app/logs.rb +1 -1
- data/lib/vmc/cli/app/rename.rb +1 -1
- data/lib/vmc/version.rb +1 -1
- metadata +1 -1
data/lib/vmc/cli.rb
CHANGED
@@ -26,6 +26,12 @@ module VMC
|
|
26
26
|
option :help, :desc => "Show command usage", :alias => "-h",
|
27
27
|
:default => false
|
28
28
|
|
29
|
+
option :proxy, :desc => "Run this command as another user (admin)", :alias => "-u",
|
30
|
+
:value => :email
|
31
|
+
|
32
|
+
option :http_proxy, :desc => "Connect though an http proxy server", :alias => "--http-proxy",
|
33
|
+
:value => :http_proxy
|
34
|
+
|
29
35
|
option :version, :desc => "Print version number", :alias => "-v",
|
30
36
|
:default => false
|
31
37
|
|
data/lib/vmc/cli/app/env.rb
CHANGED
@@ -24,7 +24,7 @@ module VMC::App
|
|
24
24
|
end
|
25
25
|
|
26
26
|
desc "Set an environment variable"
|
27
|
-
group :apps, :info
|
27
|
+
group :apps, :info
|
28
28
|
input :app, :desc => "Application to set the variable for",
|
29
29
|
:argument => true, :from_given => by_name(:app)
|
30
30
|
input :name, :desc => "Variable name", :argument => true
|
@@ -56,7 +56,7 @@ module VMC::App
|
|
56
56
|
|
57
57
|
|
58
58
|
desc "Remove an environment variable"
|
59
|
-
group :apps, :info
|
59
|
+
group :apps, :info
|
60
60
|
input :app, :desc => "Application to set the variable for",
|
61
61
|
:argument => true, :from_given => by_name(:app)
|
62
62
|
input :name, :desc => "Variable name", :argument => true
|
data/lib/vmc/cli/app/files.rb
CHANGED
@@ -4,7 +4,7 @@ require "vmc/cli/app/base"
|
|
4
4
|
module VMC::App
|
5
5
|
class Files < Base
|
6
6
|
desc "Print out an app's file contents"
|
7
|
-
group :apps, :info
|
7
|
+
group :apps, :info
|
8
8
|
input :app, :desc => "Application to inspect the files of",
|
9
9
|
:argument => true, :from_given => by_name(:app)
|
10
10
|
input :path, :desc => "Path of file to read", :argument => :optional,
|
@@ -34,7 +34,7 @@ module VMC::App
|
|
34
34
|
end
|
35
35
|
|
36
36
|
desc "Examine an app's files"
|
37
|
-
group :apps, :info
|
37
|
+
group :apps, :info
|
38
38
|
input :app, :desc => "Application to inspect the files of",
|
39
39
|
:argument => true, :from_given => by_name(:app)
|
40
40
|
input :path, :desc => "Path of directory to list", :argument => :optional,
|
@@ -62,7 +62,7 @@ module VMC::App
|
|
62
62
|
end
|
63
63
|
|
64
64
|
desc "Stream an app's file contents"
|
65
|
-
group :apps, :info
|
65
|
+
group :apps, :info
|
66
66
|
input :app, :desc => "Application to inspect the files of",
|
67
67
|
:argument => true, :from_given => by_name(:app)
|
68
68
|
input :path, :desc => "Path of file to stream", :argument => :optional
|
data/lib/vmc/cli/app/logs.rb
CHANGED
@@ -33,7 +33,7 @@ module VMC::App
|
|
33
33
|
end
|
34
34
|
|
35
35
|
desc "Print out the logs for an app's crashed instances"
|
36
|
-
group :apps, :info
|
36
|
+
group :apps, :info
|
37
37
|
input :app, :desc => "Application to get the logs of", :argument => true,
|
38
38
|
:from_given => by_name(:app)
|
39
39
|
def crashlogs
|
data/lib/vmc/cli/app/rename.rb
CHANGED
@@ -3,7 +3,7 @@ require "vmc/cli/app/base"
|
|
3
3
|
module VMC::App
|
4
4
|
class Rename < Base
|
5
5
|
desc "Rename an application"
|
6
|
-
group :apps, :manage
|
6
|
+
group :apps, :manage
|
7
7
|
input :app, :desc => "Application to rename", :argument => :optional,
|
8
8
|
:from_given => by_name(:app)
|
9
9
|
input :name, :desc => "New application name", :argument => :optional
|
data/lib/vmc/version.rb
CHANGED