Class: MarketplaceKit::Commands::Sync
- Inherits:
-
BaseAuthorizedCommand
- Object
- BaseCommand
- BaseAuthorizedCommand
- MarketplaceKit::Commands::Sync
- Defined in:
- lib/marketplace_kit/commands/sync.rb
Instance Method Summary collapse
Methods inherited from BaseAuthorizedCommand
Methods inherited from BaseCommand
Methods included from Services::Loggable
Constructor Details
This class inherits a constructor from MarketplaceKit::Commands::BaseAuthorizedCommand
Instance Method Details
#execute ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/marketplace_kit/commands/sync.rb', line 4 def execute log :sync_command_started listener = Listen.to(MARKETPLACE_BUILDER_FOLDER) do |modified, added, _removed| changed_file_paths = added + modified changed_file_paths.each do |changed_file_path| on_file_change(changed_file_path) end end listener.start sleep end |