Skip to content

burtlo/snap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Snap

Make working with plans a snap. This is a set of tools that assist working with the packages built and stored in the ./results directory by giving an easier way to index them.

Listing Packages

Install

$ hab studio enter
(studio) $ hab pkg install franklinwebber/snap -b

Using

Build your plans as you would.

$ build

Then run the list command:

$ list pkg_name
HEAD~5	- ./results/franklinwebber-snap-0.1.0-20171024033304-x86_64-linux.hart
HEAD~4	- ./results/franklinwebber-snap-0.1.0-20171024034255-x86_64-linux.hart
HEAD~3	- ./results/franklinwebber-snap-0.1.0-20171024035828-x86_64-linux.hart
HEAD~2	- ./results/franklinwebber-snap-0.1.0-20171024042033-x86_64-linux.hart
HEAD~1	- ./results/franklinwebber-snap-0.1.0-20171024042159-x86_64-linux.hart
HEAD	- ./results/franklinwebber-snap-0.1.1-20171024050350-x86_64-linux.hart

Start the second-to-last built package as a service

$ start pkg_name HEAD~1
# OR
$ start pkg_name ~1

Stop the service

$ stop pkg_name

Install the last built package and force it to binlink

$ install pkg_name HEAD -b -f

Upload the last built package

$ upload pkg_name HEAD
# OR
$ upload pkg_name

Development

Prior to this project I would describe myself as new to the BASH language. This is a way for me to learn how to work with the language and make some tools for myself. If you can make the things better I would love a pull request or comments on the code.

About

This contains a number of helper methods to use within a Habitat Studio session

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages