lib/app42/command/wordpress.rb in app42-0.6.1 vs lib/app42/command/wordpress.rb in app42-0.6.2
- old
+ new
@@ -38,19 +38,19 @@
end
# collect Wordpress setup name from user and proceed Wordpress upgrade request
def upgrade
@options[:wordpress] = get_wordpress_name if @options[:wordpress].nil?
- flavour = get_flavour_upgrade @options[:wordpress]
- response = upgrade_or_downgrade_wordpress __method__, @options[:wordpress], flavour if is_setup_name_exist? @options[:wordpress]
+ flavour = get_flavour_for_upgrade_or_downgrade @options[:wordpress], __method__.to_s if is_setup_name_exist? @options[:wordpress]
+ response = upgrade_or_downgrade_wordpress __method__, @options[:wordpress], flavour
exit! if response
end
# collect Wordpress setup name from user and proceed Wordpress downgrade request
def downgrade
@options[:wordpress] = get_wordpress_name if @options[:wordpress].nil?
- flavour = get_flavour_downgrade @options[:wordpress]
- response = upgrade_or_downgrade_wordpress __method__, @options[:wordpress], flavour if is_setup_name_exist? @options[:wordpress]
+ flavour = get_flavour_for_upgrade_or_downgrade @options[:wordpress], __method__.to_s if is_setup_name_exist? @options[:wordpress]
+ response = upgrade_or_downgrade_wordpress __method__, @options[:wordpress], flavour
exit! if response
end
# return flavour
def get_flavour
\ No newline at end of file