Sha256: d778a04d2cc2efa6498bf3bce71754a95a750409f2027654693a5db785b9ce90
Contents?: true
Size: 990 Bytes
Versions: 16
Compression:
Stored size: 990 Bytes
Contents
# encoding: utf-8 # Pupu::Tasks.class_eval do # def setup # load "config/environment.rb" # end # end module Pupu class Tasks < Thor def initialize require "pupu/cli" self.setup end # self.namespace = "pupu" # TODO: patch thor desc "install [*pupu]", "Install given pupu" def install(*pupus) CLI.install(*pupus) end desc "update [*pupu]", "Update given pupu if an argument given, otherwise update all pupus" def update(*pupus) CLI.update(*pupus) end desc "uninstall [*pupu]", "Uninstall given pupu" def uninstall(*pupus) CLI.uninstall(*pupus) end desc "list", "Show installed pupus" def list CLI.list end desc "search [pattern]", "Search remote pupus" def search(pattern = nil) CLI.search(pattern) end protected # Setup hook for tasks which require to have Pupu.root and Pupu.media_root set def setup load "config/pupu.rb" end end end
Version data entries
16 entries across 16 versions & 1 rubygems