Sha256: 432ae7fd3c959ddf6b75be6e0a338d26ad7bf72c27b10c1b2ee0551032f29ebd

Contents?: true

Size: 670 Bytes

Versions: 31

Compression:

Stored size: 670 Bytes

Contents

# Demonstration of how to embed AutomateIt into Rakefile

require "automateit"

# Create an Interpreter for project in current directory.
@interpreter = AutomateIt.new(:project => ".")

# Include Interpreter's 'invoke' and 'preview' methods into Rake.
@interpreter.include_in(self, %w(invoke preview))

desc "Install myapp server"
task :install do
  # The 'invoke' method was created by the 'include_in' call earlier, 
  # as a convenient shortcut for: @interpreter.invoke("install")
  invoke "install"
end

desc "Uninstall myapp server"
task :uninstall do
  invoke "uninstall"
end

desc "Preview action, e.g, 'rake preview install'"
task :preview do
  preview true
end

Version data entries

31 entries across 31 versions & 2 rubygems

Version Path
automate-it-0.9.2 examples/basic/Rakefile
automate-it-0.9.1 examples/basic/Rakefile
automate-it-0.9.0 examples/basic/Rakefile
automateit-0.70928 examples/basic/Rakefile
automateit-0.70930 examples/basic/Rakefile
automateit-0.71003 examples/basic/Rakefile
automateit-0.70923 examples/basic/Rakefile
automateit-0.71031.2 examples/basic/Rakefile
automateit-0.71017 examples/basic/Rakefile
automateit-0.71006 examples/basic/Rakefile
automateit-0.71012 examples/basic/Rakefile
automateit-0.71030 examples/basic/Rakefile
automateit-0.71021 examples/basic/Rakefile
automateit-0.71031.1 examples/basic/Rakefile
automateit-0.71102 examples/basic/Rakefile
automateit-0.71103 examples/basic/Rakefile
automateit-0.71031 examples/basic/Rakefile
automateit-0.71101.2 examples/basic/Rakefile
automateit-0.71101 examples/basic/Rakefile
automateit-0.71101.1 examples/basic/Rakefile