Sha256: 542ca2a711366e6bd1ee18c2ca3305c7e33bb9b282e99c3d5ba1b5b8819b429a

Contents?: true

Size: 751 Bytes

Versions: 13

Compression:

Stored size: 751 Bytes

Contents

module Spontaneous
  module Cli
    class Sync < ::Thor
      include Spontaneous::Cli::TaskUtils

      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 "down", "Makes the local copy a clone of the production server"
      def down
        Down.start
      end

      desc "up", "Makes the local copy a clone of the production server"
      def up
        Down.start
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
spontaneous-0.2.0.beta10 lib/spontaneous/cli/sync.rb
spontaneous-0.2.0.beta9 lib/spontaneous/cli/sync.rb
spontaneous-0.2.0.beta8 lib/spontaneous/cli/sync.rb
spontaneous-0.2.0.beta7 lib/spontaneous/cli/sync.rb
spontaneous-0.2.0.beta6 lib/spontaneous/cli/sync.rb
spontaneous-0.2.0.beta5 lib/spontaneous/cli/sync.rb
spontaneous-0.2.0.beta4 lib/spontaneous/cli/sync.rb
spontaneous-0.2.0.beta3 lib/spontaneous/cli/sync.rb
spontaneous-0.2.0.beta2 lib/spontaneous/cli/sync.rb
spontaneous-0.2.0.beta1 lib/spontaneous/cli/sync.rb
spontaneous-0.2.0.alpha7 lib/spontaneous/cli/sync.rb
spontaneous-0.2.0.alpha6 lib/spontaneous/cli/sync.rb
spontaneous-0.2.0.alpha5 lib/spontaneous/cli/sync.rb