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
automateit-0.71220 examples/basic/Rakefile
automateit-0.71221 examples/basic/Rakefile
automateit-0.71111 examples/basic/Rakefile
automateit-0.71104 examples/basic/Rakefile
automateit-0.71112 examples/basic/Rakefile
automateit-0.71219 examples/basic/Rakefile
automateit-0.71226.1 examples/basic/Rakefile
automateit-0.71226 examples/basic/Rakefile
automateit-0.71230 examples/basic/Rakefile
automateit-0.80624 examples/basic/Rakefile
automateit-0.80116 examples/basic/Rakefile