Class: VagrantPlugins::DevCommands::Messages
- Inherits:
-
Object
- Object
- VagrantPlugins::DevCommands::Messages
- Defined in:
- lib/vagrant/devcommands/messages.rb
Overview
Provides access to messages used by the plugin
Class Method Summary collapse
- .no_commands(&out) ⇒ Object
- .no_help(&out) ⇒ Object
- .plugin_usage(&out) ⇒ Object
- .plugin_usage_info(&out) ⇒ Object
Class Method Details
.no_commands(&out) ⇒ Object
11 12 13 |
# File 'lib/vagrant/devcommands/messages.rb', line 11 def self.no_commands(&out) out.call 'No commands defined!' end |
.no_help(&out) ⇒ Object
7 8 9 |
# File 'lib/vagrant/devcommands/messages.rb', line 7 def self.no_help(&out) out.call 'No detailed help for this command available.' end |
.plugin_usage(&out) ⇒ Object
15 16 17 18 |
# File 'lib/vagrant/devcommands/messages.rb', line 15 def self.plugin_usage(&out) out.call 'Usage: vagrant run [box] <command>' out.call 'Help: vagrant run help <command>' end |
.plugin_usage_info(&out) ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/vagrant/devcommands/messages.rb', line 20 def self.plugin_usage_info(&out) curdir = File.(File.dirname(__FILE__)) readme = File.(File.join(curdir, '../../../README.md')) out.call '' out.call 'For detailed usage please read the' out.call 'README.md at the original source location:' out.call '>>> https://github.com/mneudert/vagrant-devcommands' out.call 'A copy of this file should be locally available at' out.call ">>> #{readme}" end |