pantograph/lib/pantograph/actions/reset_git_repo.rb in pantograph-0.1.12 vs pantograph/lib/pantograph/actions/reset_git_repo.rb in pantograph-0.1.13

- old
+ new

@@ -39,11 +39,11 @@ UI.user_error!('This is a destructive and potentially dangerous action. To protect from data loss, please add the `ensure_git_status_clean` action to the beginning of your lane, or if you\'re absolutely sure of what you\'re doing then call this action with the :force option.') end end def self.description - "Resets git repo to a clean state by discarding uncommitted changes" + 'Resets git repo to a clean state by discarding uncommitted changes' end def self.details list = <<-LIST.markdown_list You have called the `ensure_git_status_clean` action prior to calling this action. This ensures that your repo started off in a clean state, so the only things that will get destroyed by this action are files that are created as a byproduct of the pantograph run. @@ -76,34 +76,34 @@ end def self.available_options [ PantographCore::ConfigItem.new(key: :files, - env_name: "FL_RESET_GIT_FILES", - description: "Array of files the changes should be discarded. If not given, all files will be discarded", + env_name: 'RESET_GIT_FILES', + description: 'Array of files the changes should be discarded. If not given, all files will be discarded', optional: true, is_string: false, verify_block: proc do |value| UI.user_error!("Please pass an array only") unless value.kind_of?(Array) end), PantographCore::ConfigItem.new(key: :force, - env_name: "FL_RESET_GIT_FORCE", - description: "Skip verifying of previously clean state of repo. Only recommended in combination with `files` option", + env_name: 'RESET_GIT_FORCE', + description: 'Skip verifying of previously clean state of repo. Only recommended in combination with `files` option', is_string: false, default_value: false), PantographCore::ConfigItem.new(key: :skip_clean, - env_name: "FL_RESET_GIT_SKIP_CLEAN", + env_name: 'RESET_GIT_SKIP_CLEAN', description: "Skip 'git clean' to avoid removing untracked files like `.env`", is_string: false, default_value: false), PantographCore::ConfigItem.new(key: :disregard_gitignore, - env_name: "FL_RESET_GIT_DISREGARD_GITIGNORE", - description: "Setting this to true will clean the whole repository, ignoring anything in your local .gitignore. Set this to true if you want the equivalent of a fresh clone, and for all untracked and ignore files to also be removed", + env_name: 'RESET_GIT_DISREGARD_GITIGNORE', + description: 'Setting this to true will clean the whole repository, ignoring anything in your local .gitignore. Set this to true if you want the equivalent of a fresh clone, and for all untracked and ignore files to also be removed', is_string: false, optional: true, default_value: true), PantographCore::ConfigItem.new(key: :exclude, - env_name: "FL_RESET_GIT_EXCLUDE", + env_name: 'RESET_GIT_EXCLUDE', description: "You can pass a string, or array of, file pattern(s) here which you want to have survive the cleaning process, and remain on disk, e.g. to leave the `artifacts` directory you would specify `exclude: 'artifacts'`. Make sure this pattern is also in your gitignore! See the gitignore documentation for info on patterns", is_string: false, optional: true) ] end