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



62
63
64
65
66
67
68
69
70
# File 'lib/rosette/client/commands/pull_command.rb', line 62

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

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