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