lib/app42/command/wordpress.rb in app42-0.6.2 vs lib/app42/command/wordpress.rb in app42-0.6.3

- old
+ new

@@ -35,9 +35,16 @@ @options[:wordpress] = get_wordpress_name if @options[:wordpress].nil? response = wordpress_operation __method__, @options[:wordpress] if is_setup_name_exist? @options[:wordpress] exit! if response end + # collect wordpress setup name from user and proceed wordpress restart request + def restart + @options[:wordpress] = get_wordpress_name if @options[:wordpress].nil? + response = wordpress_operation __method__, @options[:wordpress] if is_setup_name_exist? @options[:wordpress] + exit! if response + 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_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 \ No newline at end of file