Sha256: fd619232e020209d552546587692e97742d04741215c63b95e66bf6c3852dfaa

Contents?: true

Size: 774 Bytes

Versions: 5

Compression:

Stored size: 774 Bytes

Contents

module Spontaneous
  module Cli
    class Sync < ::Spontaneous::Cli::Thor
      Spontaneous = ::Spontaneous
      namespace :sync
      default_task :down

      class SyncTask < ::Thor::Group
        protected

        def arse(n)
          puts 'arse '+n
        end
      end

      class Down < SyncTask
        desc "Syncs down"
        def one
          arse('one')
        end
        def two
          arse('two')
        end
      end

      class Up < SyncTask
        desc "Syncs up"
      end

      desc "#{namespace}:down", "Makes the local copy a clone of the live server"
      def down
        Down.start
      end

      desc "#{namespace}:up", "Makes the local copy a clone of the live server"
      def up
        Down.start
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spontaneous-0.2.0.alpha4 lib/spontaneous/cli/sync.rb
spontaneous-0.2.0.alpha3 lib/spontaneous/cli/sync.rb
spontaneous-0.2.0.alpha2 lib/spontaneous/cli/sync.rb
spontaneous-0.2.0.alpha1 lib/spontaneous/cli/sync.rb
spontaneous-0.1.0.alpha1 lib/spontaneous/cli/sync.rb