Skip to content

Commit

Permalink
Updating run to use new state methods
Browse files Browse the repository at this point in the history
  • Loading branch information
krak3n committed Jul 10, 2013
1 parent eaafc31 commit 3a48e89
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/facio/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@

from facio.base import BaseFacio
from facio.config import Settings, CommandLineInterface, ConfigurationFile
from facio.template import Template
from facio.pipeline import Pipeline
from facio.template import Template
from facio.state import state


class Run(BaseFacio):
Expand All @@ -25,20 +26,18 @@ def run(self):
parsed = config.read()

settings = Settings(interface, parsed)
state.update_context_variables(settings.get_variables())

template = Template(
settings.get_template_path()
)

template.update_context_variables(settings.get_variables())
template.update_ignore_globs(settings.get_ignore_globs())

template.copy()

pipeline = Pipeline()
pipeline.load(os.path.join(
template.get_project_root(),
'.facio.pipeline.yml'
state.get_project_root(), '.facio.pipeline.yml'
))

if pipeline.has_before():
Expand Down

0 comments on commit 3a48e89

Please sign in to comment.