Class: WordPressTools::WordPress
- Inherits:
-
Thor
- Object
- Thor
- WordPressTools::WordPress
- Includes:
- CLIHelper, SharedOptions
- Defined in:
- lib/wordpress_tools/wordpress.rb
Instance Attribute Summary collapse
-
#dir_name ⇒ Object
readonly
Returns the value of attribute dir_name.
Instance Method Summary collapse
Methods included from CLIHelper
#error, #executable_bit_command, #git_installed?, #info, #move_command, #run_command, #success, #unzip, #void, #warning
Instance Attribute Details
#dir_name ⇒ Object (readonly)
Returns the value of attribute dir_name.
6 7 8 |
# File 'lib/wordpress_tools/wordpress.rb', line 6 def dir_name @dir_name end |
Instance Method Details
#download(dir_name = "wordpress") ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/wordpress_tools/wordpress.rb', line 10 def download(dir_name = "wordpress") @dir_name = dir_name download_wordpress initialize_git_repo end |
#setup(dir_name = "wordpress") ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/wordpress_tools/wordpress.rb', line 20 def setup(dir_name = "wordpress") @dir_name = dir_name inside(dir_name) do create_wp_config_file install end end |