Sha256: f9f6f9dc139a171b26ae1594bf07392a13e8008b6c21527e5d2d10429964703c

Contents?: true

Size: 523 Bytes

Versions: 10

Compression:

Stored size: 523 Bytes

Contents

module SmartMachine
  module Commands
    class Syncer < Thor
      include Utilities

      desc "sync", "Sync files"
      def sync
        inside_machine_dir do
          syncer = SmartMachine::Syncer.new
          syncer.sync
        end
      end

      desc "rsync", "Run rsync command. System command. Should not be used by user.", hide: true
      def rsync(*args)
        inside_engine_machine_dir do
          syncer = SmartMachine::Syncer.new
          syncer.rsync(args)
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
smartmachine-1.3.0 lib/smart_machine/commands/syncer.rb
smartmachine-1.2.3 lib/smart_machine/commands/syncer.rb
smartmachine-1.2.1 lib/smart_machine/commands/syncer.rb
smartmachine-1.2.0 lib/smart_machine/commands/syncer.rb
smartmachine-1.2.0.dev lib/smart_machine/commands/syncer.rb
smartmachine-1.1.1 lib/smart_machine/commands/syncer.rb
smartmachine-1.1.0 lib/smart_machine/commands/syncer.rb
smartmachine-1.0.1 lib/smart_machine/commands/syncer.rb
smartmachine-1.0.0 lib/smart_machine/commands/syncer.rb
smartmachine-0.9.0 lib/smart_machine/commands/syncer.rb