Playing with bosh generators

28 views
Skip to first unread message

Dr Nic Williams

unread,
Apr 22, 2012, 2:26:11 AM4/22/12
to bosh-dev
I found that the "bosh init release <path>" generator didn't create a project that immediately worked with "bosh create release"; rather it just complained about something that I didn't understand. So I fixed that by fixing the generator. Except I like thor for my generators (not currently used by the CLI) and I wasn't sure if they'd be accepted upstream, so I started a new generator project to flesh out some ideas. 

To create a new release project that works with "bosh create release" do something like:

gem install bosh-gen

bosh-gen new mynewthing --s3
bosh-gen new mynewthing --atmos
bosh-gen new mynewthing    # defaults to local storage and warns you

cd mynewthing
bosh create release
… works! You still need to update config/*.yml files, but those files now educate you what attributes are needed, etc.


When its done, if you guys want the various generators merged back into the bosh CLI, I'll help with that.

Nic

-- 
Dr Nic Williams
Engine Yard, VP Developer Evangelism

Reply all
Reply to author
Forward
0 new messages