Sha256: e436d52fc621109f6cd5c0fd56a281048899bb8df538a0b334093e58c2ceff56

Contents?: true

Size: 930 Bytes

Versions: 5

Compression:

Stored size: 930 Bytes

Contents

module Troo
  module CLI
    class Refresh < ThorFixes
      package_name 'refresh'

      # @return [String]
      desc 'all',
           'Refresh all the local data.'
      def all
        say Commands::RefreshAll.dispatch
      end

      # @param  [String]
      # @return [String]
      desc 'board (<id>)',
           'Refresh the default board or board with <id>.'
      def board(id = nil)
        say Commands::Refresh.dispatch(Troo::Board, id)
      end

      # @param  [String]
      # @return [String]
      desc 'card (<id>)',
           'Refresh the default card or card with <id>.'
      def card(id = nil)
        say Commands::Refresh.dispatch(Troo::Card, id)
      end

      # @param  [String]
      # @return [String]
      desc 'list (<id>)',
           'Refresh the default list or list with <id>.'
      def list(id = nil)
        say Commands::Refresh.dispatch(Troo::List, id)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
troo-0.0.15 lib/troo/cli/refresh.rb
troo-0.0.14 lib/troo/cli/refresh.rb
troo-0.0.13 lib/troo/cli/refresh.rb
troo-0.0.12 lib/troo/cli/refresh.rb
troo-0.0.11 lib/troo/cli/refresh.rb