Class: Mailbot::Commands::Sync
- Defined in:
- lib/mailbot/commands/sync.rb
Constant Summary collapse
- DEFAULT_MARKDOWN_FILE =
"index.md"- DEFAULT_ENV_FILE =
".env"
Instance Method Summary collapse
-
#execute ⇒ Object
Sync the specified file to Mailbox.
-
#initialize(argv) ⇒ Sync
constructor
A new instance of Sync.
Constructor Details
#initialize(argv) ⇒ Sync
Returns a new instance of Sync.
9 10 11 |
# File 'lib/mailbot/commands/sync.rb', line 9 def initialize(argv) @argv = argv end |
Instance Method Details
#execute ⇒ Object
Sync the specified file to Mailbox
14 15 16 17 |
# File 'lib/mailbot/commands/sync.rb', line 14 def execute load_env! Mailbot::Repository.new(file).sync end |