Class: I18nliner::Commands::Import
- Inherits:
-
GenericCommand
- Object
- GenericCommand
- I18nliner::Commands::Import
- Defined in:
- lib/i18nliner/commands/import.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#translations ⇒ Object
readonly
Returns the value of attribute translations.
Instance Method Summary collapse
-
#initialize(options) ⇒ Import
constructor
A new instance of Import.
- #print_summary ⇒ Object
- #run ⇒ Object
- #success? ⇒ Boolean
Methods inherited from GenericCommand
Methods included from BasicFormatter
Constructor Details
#initialize(options) ⇒ Import
Returns a new instance of Import.
13 14 15 |
# File 'lib/i18nliner/commands/import.rb', line 13 def initialize() super end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
11 12 13 |
# File 'lib/i18nliner/commands/import.rb', line 11 def errors @errors end |
#translations ⇒ Object (readonly)
Returns the value of attribute translations.
11 12 13 |
# File 'lib/i18nliner/commands/import.rb', line 11 def translations @translations end |
Instance Method Details
#print_summary ⇒ Object
20 21 |
# File 'lib/i18nliner/commands/import.rb', line 20 def print_summary end |
#run ⇒ Object
23 24 25 26 |
# File 'lib/i18nliner/commands/import.rb', line 23 def run print_summary unless @options[:silent] success? end |
#success? ⇒ Boolean
17 18 |
# File 'lib/i18nliner/commands/import.rb', line 17 def success? end |