lib/vmc/cli/app/files.rb in cloulu-0.1.5 vs lib/vmc/cli/app/files.rb in cloulu-0.1.6
- old
+ new
@@ -2,11 +2,11 @@
require "vmc/cli/app/base"
module VMC::App
class Files < Base
desc "Print out an app's file contents"
- group :apps, :info
+ group :apps, :info, :hidden => true
input :app, :desc => "Application to inspect the files of",
:argument => true, :from_given => by_name(:app)
input :path, :desc => "Path of file to read", :argument => :optional,
:default => "/"
def file
@@ -32,11 +32,11 @@
rescue CFoundry::FileError => e
fail e.description
end
desc "Examine an app's files"
- group :apps, :info
+ group :apps, :info, :hidden => true
input :app, :desc => "Application to inspect the files of",
:argument => true, :from_given => by_name(:app)
input :path, :desc => "Path of directory to list", :argument => :optional,
:default => "/"
def files
@@ -60,10 +60,10 @@
rescue CFoundry::FileError => e
fail e.description
end
desc "Stream an app's file contents"
- group :apps, :info
+ group :apps, :info, :hidden => true
input :app, :desc => "Application to inspect the files of",
:argument => true, :from_given => by_name(:app)
input :path, :desc => "Path of file to stream", :argument => :optional
def tail
app = input[:app]