Class: WordPressTools::WordPress
- Inherits:
-
Thor
- Object
- Thor
- WordPressTools::WordPress
- Includes:
- CLIHelper
- 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.
5 6 7 |
# File 'lib/wordpress_tools/wordpress.rb', line 5 def dir_name @dir_name end |
Instance Method Details
#download(dir_name = "wordpress") ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/wordpress_tools/wordpress.rb', line 9 def download(dir_name = "wordpress") @dir_name = dir_name download_wordpress initialize_git_repo end |
#setup(dir_name = "wordpress") ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/wordpress_tools/wordpress.rb', line 19 def setup(dir_name = "wordpress") @dir_name = dir_name inside(dir_name) do create_wp_config_file install end end |