Class: Rosette::Client::Commands::PullCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/rosette/client/commands/pull_command.rb

Overview

a show is really just a diff against your parent (so the inheritance makes sense)

Instance Attribute Summary

Attributes inherited from Command

#api, #args, #repo, #terminal, #writer

Instance Method Summary collapse

Methods inherited from Command

#initialize

Constructor Details

This class inherits a constructor from Rosette::Client::Commands::Command

Instance Method Details

#executeObject



70
71
72
73
74
75
76
77
78
# File 'lib/rosette/client/commands/pull_command.rb', line 70

def execute
  locales = api.locales(
    repo_name: derive_repo_name
  )

  handle_error(locales) do |locales|
    export_locales(locales)
  end
end