Skip to content

Commit

Permalink
Merge pull request #82 from seaneagan/pub_global_fix
Browse files Browse the repository at this point in the history
Fix pub global tools.
  • Loading branch information
devoncarew committed Jan 23, 2015
2 parents 041e789 + 62b63dc commit c921652
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/grinder_tools.dart
Original file line number Diff line number Diff line change
Expand Up @@ -288,12 +288,13 @@ class PubGlobal {
PubGlobal._();

void activate(GrinderContext context, String package) {
runProcess(context, _execName('pub'), arguments: ['activate', package]);
runProcess(context, _execName('pub'),
arguments: ['global', 'activate', package]);
}

void run(GrinderContext context, String package,
{List<String> arguments, String workingDirectory}) {
List args = ['run', package];
List args = ['global', 'run', package];
if (arguments != null) args.addAll(arguments);
runProcess(context, _execName('pub'), arguments: args,
workingDirectory: workingDirectory);
Expand Down

0 comments on commit c921652

Please sign in to comment.