Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix applied to wp:install:theme the directory was off, added default_…

…task to wp:generate, fix applied to wp:deploy app and theme
  • Loading branch information...
commit b5158dc11cfc3f346e87e4718d5b6e826dcc5ef8 1 parent 26468f6
Adam Stacoviak authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 wordpress.thor
View
5 wordpress.thor
@@ -97,6 +97,7 @@ module Wp
desc "theme", "Deploys the theme (Default task)"
def theme
if deploy_config?
+ config = YAML.load_file("deploy.yaml") rescue nil
ssh_user = config['ssh_user']
remote_root = config['remote_root']
theme = config['theme']
@@ -126,12 +127,14 @@ module Wp
private
def deploy_config?
- config = load_file("deploy.yaml") rescue nil
+ File.exist?("deploy.yaml")
end
end
class Generate < Thor
+
+ default_task :deploy_config
desc "deploy_config", "Generates the deploy.yaml file"
def deploy_config

0 comments on commit b5158dc

Please sign in to comment.
Something went wrong with that request. Please try again.