Commit 6d382701 authored by drumm's avatar drumm Committed by Neil Drumm

Clean up alias config constructor and call owner's sync.

parent 3446b330
...@@ -113,14 +113,14 @@ class provisionConfig { ...@@ -113,14 +113,14 @@ class provisionConfig {
->succeed('Change group ownership of @path to @gid') ->succeed('Change group ownership of @path to @gid')
->fail('Could not change group ownership of @path to @gid'); ->fail('Could not change group ownership of @path to @gid');
} }
#provision_file()->sync($this->filename()); $this->owner->sync($filename);
} }
} }
} }
function unlink() { function unlink() {
provision_file()->unlink($this->filename())->status(); provision_file()->unlink($this->filename())->status();
#provision_file()->sync($this->filename()); $this->owner->sync($this->filename());
} }
} }
...@@ -169,11 +169,11 @@ class provisionConfig_drushrc_alias extends provisionConfig_drushrc { ...@@ -169,11 +169,11 @@ class provisionConfig_drushrc_alias extends provisionConfig_drushrc {
* @param $options * @param $options
* Array of string option names to save. * Array of string option names to save.
*/ */
function __construct($owner, $options = array()) { function __construct($owner, $data = array()) {
$this->owner = $owner; parent::__construct($owner, $data);
$this->data = array( $this->data = array(
'aliasname' => ltrim($owner, '@'), 'aliasname' => ltrim($owner, '@'),
'options' => $options, 'options' => $data,
); );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment