Skip to content

Commit

Permalink
v2 to brew
Browse files Browse the repository at this point in the history
  • Loading branch information
shin- committed May 28, 2014
1 parent 27c45a8 commit 8ec6a5d
Show file tree
Hide file tree
Showing 6 changed files with 321 additions and 614 deletions.
10 changes: 4 additions & 6 deletions stackbrew/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@

import flask

sys.path.append('./lib')

import brew.v2 as brew
import db
import periodic
import utils
import brew
import lib.db as db
import lib.periodic as periodic
import lib.utils as utils

app = flask.Flask('stackbrew')
config = None
Expand Down
6 changes: 3 additions & 3 deletions stackbrew/brew-cli
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ if __name__ == '__main__':
)
args = parser.parse_args()
if args.debug:
brew.v2.set_loglevel('DEBUG')
sb_library = brew.v2.StackbrewLibrary(args.repository, args.b)
builder = brew.v2.LocalBuilder(sb_library, args.n.split(','), args.targets)
brew.set_loglevel('DEBUG')
sb_library = brew.StackbrewLibrary(args.repository, args.b)
builder = brew.LocalBuilder(sb_library, args.n.split(','), args.targets)
builder.build_repo_list()
builder.build_all()
if args.push:
Expand Down
3 changes: 1 addition & 2 deletions stackbrew/brew/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
from brew import build_library, DEFAULT_REPOSITORY, DEFAULT_BRANCH
from . import v2
from .brew import *

0 comments on commit 8ec6a5d

Please sign in to comment.