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
Constant Summary collapse
- I18N_KEY =
'vagrant_devcommands.message'
Class Method Summary collapse
- .chain_no_help(&out) ⇒ Object
- .command_alias_no_help(&out) ⇒ Object
- .command_no_help(&out) ⇒ Object
- .missing_commandfile(&out) ⇒ Object
- .no_commands(&out) ⇒ Object
- .plugin_readme(&out) ⇒ Object
- .plugin_usage(&out) ⇒ Object
- .pre_ln(msg, &out) ⇒ Object
Class Method Details
.chain_no_help(&out) ⇒ Object
11 12 13 |
# File 'lib/vagrant/devcommands/messages.rb', line 11 def self.chain_no_help(&out) out.call I18n.t("#{I18N_KEY}.chain_no_help") end |
.command_alias_no_help(&out) ⇒ Object
15 16 17 |
# File 'lib/vagrant/devcommands/messages.rb', line 15 def self.command_alias_no_help(&out) out.call I18n.t("#{I18N_KEY}.command_alias_no_help") end |
.command_no_help(&out) ⇒ Object
19 20 21 |
# File 'lib/vagrant/devcommands/messages.rb', line 19 def self.command_no_help(&out) out.call I18n.t("#{I18N_KEY}.command_no_help") end |
.missing_commandfile(&out) ⇒ Object
23 24 25 |
# File 'lib/vagrant/devcommands/messages.rb', line 23 def self.missing_commandfile(&out) out.call I18n.t("#{I18N_KEY}.missing_commandfile") end |
.no_commands(&out) ⇒ Object
27 28 29 |
# File 'lib/vagrant/devcommands/messages.rb', line 27 def self.no_commands(&out) out.call I18n.t("#{I18N_KEY}.no_commands") end |
.plugin_readme(&out) ⇒ Object
31 32 33 34 35 36 |
# File 'lib/vagrant/devcommands/messages.rb', line 31 def self.plugin_readme(&out) curdir = File.(__dir__) readme = File.(File.join(curdir, '../../../README.md')) out.call I18n.t("#{I18N_KEY}.plugin_readme", readme: readme) end |
.plugin_usage(&out) ⇒ Object
38 39 40 |
# File 'lib/vagrant/devcommands/messages.rb', line 38 def self.plugin_usage(&out) out.call I18n.t("#{I18N_KEY}.plugin_usage") end |
.pre_ln(msg, &out) ⇒ Object
42 43 44 45 46 |
# File 'lib/vagrant/devcommands/messages.rb', line 42 def self.pre_ln(msg, &out) out.call '' public_send(msg, &out) end |