Class: I18nliner::Commands::Import

Inherits:
GenericCommand show all
Defined in:
lib/i18nliner/commands/import.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from GenericCommand

run

Methods included from BasicFormatter

#green, #red

Constructor Details

#initialize(options) ⇒ Import

Returns a new instance of Import.


13
14
15
# File 'lib/i18nliner/commands/import.rb', line 13

def initialize(options)
  super
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors


11
12
13
# File 'lib/i18nliner/commands/import.rb', line 11

def errors
  @errors
end

#translationsObject (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


20
21
# File 'lib/i18nliner/commands/import.rb', line 20

def print_summary
end

#runObject


23
24
25
26
# File 'lib/i18nliner/commands/import.rb', line 23

def run
  print_summary unless @options[:silent]
  success?
end

#success?Boolean

Returns:

  • (Boolean)

17
18
# File 'lib/i18nliner/commands/import.rb', line 17

def success?
end