Module: SyntaxSugar

Defined in:
lib/dsl.rb

Instance Method Summary collapse

Instance Method Details

#command(path, cmd) ⇒ Object



133
134
135
136
137
# File 'lib/dsl.rb', line 133

def command(path, cmd)
  get path do
    write `#{cmd}`
  end
end

#get(path, &block) ⇒ Object



130
# File 'lib/dsl.rb', line 130

def get(path, &block); path(:get, path, caller, &block); end

#post(path, &block) ⇒ Object



131
# File 'lib/dsl.rb', line 131

def post(path, &block); path(:post, path, caller, &block); end