Class: Mailbot::Commands::Sync
- Defined in:
- lib/mailbot/commands/sync.rb
Instance Method Summary collapse
-
#execute ⇒ Object
Sync given file to Mailbox.
-
#initialize(argv) ⇒ Sync
constructor
A new instance of Sync.
Constructor Details
#initialize(argv) ⇒ Sync
Returns a new instance of Sync.
6 7 8 |
# File 'lib/mailbot/commands/sync.rb', line 6 def initialize(argv) @argv = argv end |
Instance Method Details
#execute ⇒ Object
Sync given file to Mailbox
11 12 13 14 |
# File 'lib/mailbot/commands/sync.rb', line 11 def execute load_env! Mailbot::Repository.new(file).sync end |