Skip to content

Commit

Permalink
correct typo in wp-cli command fix #3
Browse files Browse the repository at this point in the history
  • Loading branch information
francescolaffi committed Jun 20, 2013
1 parent 8e62edd commit 3765285
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions providers/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def load_current_resource
wpcli "#{name} core install" do
path path
args sel_args(args, ['url','title','admin_name','admin_email','admin_password'])
not_if 'wp core is_installed', :cwd => path
not_if 'wp core is-installed', :cwd => path
end

# install network
Expand All @@ -150,19 +150,19 @@ def load_current_resource
wpcli "#{name} core update" do
path path
args sel_args(args, ['version'], ['force'])
only_if 'wp core is_installed', :cwd => path
only_if 'wp core is-installed', :cwd => path
end if args['update-core'] == true

# update plugins
wpcli "#{name} plugin update-all" do
path path
only_if 'wp core is_installed', :cwd => path
only_if 'wp core is-installed', :cwd => path
end if args['update-plugins'] == true

# update themes
wpcli "#{name} theme update-all" do
path path
only_if 'wp core is_installed', :cwd => path
only_if 'wp core is-installed', :cwd => path
end if args['update-themes'] == true


Expand Down

0 comments on commit 3765285

Please sign in to comment.