Sha256: aae1991bd32ba5c253295d2c45b693f5b80ae4767f647299bb48568f41fee249

Contents?: true

Size: 990 Bytes

Versions: 2

Compression:

Stored size: 990 Bytes

Contents

# need { 'lib/amp/extensions/ditz' }
# need { 'lib/amp/extensions/lighthouse' }

# Amp::LighthouseHook.add_hooks(:commit) do |hook|
#   hook.token   = 'e4d6af1951c240e00c216bad3c52cf269cba4a7c'
#   hook.account = 'carbonica'
#   hook.project = 'amp'
# end

Amp::Command.new("silly") do |c|
  c.workflow :hg
  c.on_run do |options, args|
    puts "You're silly!"
    puts "You're REALLLY silly!"
  end
  c.desc "tell you how silly you are"
end

# command :push do |c|
#   c.before { system "rake test" }
# end

template :silly, <<-EOF
<%= change_node.inspect %> <%= revision %>
EOF


namespace :docs do
  
  command "gen" do |c|
    c.desc "create the docs"
    c.on_run {|o, a| `rake yard:doc`; puts 'docs made!' }
  end
  
  command "upload" do |c|
    c.desc "upload the docs"
    c.on_run {|o, a| puts "docs uploaded!!!!" }
  end
  
  namespace :search do
    
    command "methods" do |c|
      c.desc "search method names"
      c.on_run {|o, a| puts "#{a.inspect}"}
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
amp-pure-0.5.0 ampfile.rb
amp-0.5.0 ampfile.rb