Here are some resources that I found helpful and found inspiration from when I was writing the talk.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'excon' | |
require 'securerandom' | |
def multipart_form_data(buildpack_file_path) | |
body = '' | |
boundary = SecureRandom.hex(4) | |
data = File.open(buildpack_file_path) | |
data.binmode if data.respond_to?(:binmode) | |
data.pos = 0 if data.respond_to?(:pos=) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'fog' | |
compute = Fog::Compute.new(:provider => 'VirtualBox') | |
server = compute.servers.create(:name => 'lucid', :os => 'Ubuntu') | |
medium = compute.mediums.create(:device_type => :hard_disk, :location => '/Users/geemus/geemus/virtualbox_poc/lucid.vmdk', :read_only => false) | |
storage_controller = server.storage_controllers.create(:bus => :sata, :name => 'sata') | |
storage_controller.attach(medium, 0) |
TODO empty arrays and/or nil values (see apps:info)
- Use full sentences, including punctuation.
- Labels should be provided where needed in the form of 'Labels labels:'.
- Commands should have one newline between the header and body and another after the body.
- Alpha-sort arrays before display and display labeled data in alpha-sorted key order.
$ heroku help apps:create
Usage:
heroku apps:create [NAME]
Description:
create a new app
Options:
--addons ADDONS
a comma-delimited list of addons to install
-b, --buildpack BUILDPACK
a buildpack url to use for this app
$ heroku help apps:create
= usage: heroku apps:create [NAME]
= description: create a new app
= options:
--addons ADDONS
a comma-delimited list of addons to install
-b, --buildpack BUILDPACK
a buildpack url to use for this app
-r, --remote REMOTE
the git remote to create, default "heroku"
$ heroku help apps:create
## Usage:
heroku apps:create [NAME]
## Description:
create a new app
## Options:
--addons ADDONS
a comma-delimited list of addons to install
-b, --buildpack BUILDPACK
a buildpack url to use for this app
NewerOlder