Jifty::Plugin::EditInPlace::Action::FileEditor
This action allows you to edit mason components (and eventually libraries) using Jifty's Action system. It should only be enabled when you're running Jifty in DevelMode.
DevelMode
THIS ACTION LETS YOU REMOTELY EDIT EXECUTABLE CODE.
THIS IS DANGEROUS
Create a new FileEditor action.
FileEditor
Sets up this action's arguments.
Where to save the file
(One of mason_component or library)
Where to read the file from.
Where to write the file to. If the current user can't write to the source_path, defaults to something inside the app's directory.
The actual content of the file we're editing.
Finds the version of the source_path (of type file_type) and loads it into content.
source_path
file_type
content
Returns true if the user can write to the directory PATH. False otherwise. Should be refactored to a path_writable routine and a trivial validator.
PATH
path_writable
Writes the content out to the destination_path.
destination_path
To install Jifty, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Jifty
CPAN shell
perl -MCPAN -e shell install Jifty
For more information on module installation, please visit the detailed CPAN module installation guide.