Skip to content

Instantly share code, notes, and snippets.

@nuxlli
Created November 3, 2015 20:37
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nuxlli/b1256d37b2da0c283541 to your computer and use it in GitHub Desktop.
Save nuxlli/b1256d37b2da0c283541 to your computer and use it in GitHub Desktop.
"bins" example in Azkfile
aliases({
bundle : { command: ["bundle", "exec"]}, // system: azkdemo (default)
scaffold : { alias: "bundle", append: ["rails", "g", "scaffold"]},
test : { alias: "bundle", append: ["rake", "test"], tty: true, context: 'test'},
'import-db': { system: "mysql", command: ["mysql"], depends: false}
});
// azk script generator --path ./script
// ./script/bundle
// ./script/scaffold
// azk shell [system]
// azk exec test
// azk exec scaffold -- post title:string body:text
// azk exec test -C dev -T
// azk exec -- bundle
// scaffold post title:string body:text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment