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

- old
+ new

@@ -87,105 +87,105 @@ ##################################################### # @!group Documentation ##################################################### def self.description - "Upload a file to [Sonatype Nexus platform](https://www.sonatype.com)" + 'Upload a file to [Sonatype Nexus platform](https://www.sonatype.com)' end def self.available_options [ PantographCore::ConfigItem.new(key: :file, - env_name: "FL_NEXUS_FILE", - description: "File to be uploaded to Nexus", + env_name: 'NEXUS_FILE', + description: 'File to be uploaded to Nexus', optional: false, verify_block: proc do |value| file_path = File.expand_path(value) UI.user_error!("Couldn't find file at path '#{file_path}'") unless File.exist?(file_path) end), PantographCore::ConfigItem.new(key: :repo_id, - env_name: "FL_NEXUS_REPO_ID", - description: "Nexus repository id e.g. artefacts", + env_name: 'NEXUS_REPO_ID', + description: 'Nexus repository id e.g. artefacts', optional: false), PantographCore::ConfigItem.new(key: :repo_group_id, - env_name: "FL_NEXUS_REPO_GROUP_ID", - description: "Nexus repository group id e.g. com.company", + env_name: 'NEXUS_REPO_GROUP_ID', + description: 'Nexus repository group id e.g. com.company', optional: false), PantographCore::ConfigItem.new(key: :repo_project_name, - env_name: "FL_NEXUS_REPO_PROJECT_NAME", - description: "Nexus repository commandect name. Only letters, digits, underscores(_), hyphens(-), and dots(.) are allowed", + env_name: 'NEXUS_REPO_PROJECT_NAME', + description: 'Nexus repository commandect name. Only letters, digits, underscores(_), hyphens(-), and dots(.) are allowed', optional: false), PantographCore::ConfigItem.new(key: :repo_project_version, - env_name: "FL_NEXUS_REPO_PROJECT_VERSION", - description: "Nexus repository commandect version", + env_name: 'NEXUS_REPO_PROJECT_VERSION', + description: 'Nexus repository commandect version', optional: false), PantographCore::ConfigItem.new(key: :repo_classifier, - env_name: "FL_NEXUS_REPO_CLASSIFIER", - description: "Nexus repository artifact classifier (optional)", + env_name: 'NEXUS_REPO_CLASSIFIER', + description: 'Nexus repository artifact classifier (optional)', optional: true), PantographCore::ConfigItem.new(key: :endpoint, - env_name: "FL_NEXUS_ENDPOINT", - description: "Nexus endpoint e.g. http://nexus:8081", + env_name: 'NEXUS_ENDPOINT', + description: 'Nexus endpoint e.g. http://nexus:8081', optional: false), PantographCore::ConfigItem.new(key: :mount_path, - env_name: "FL_NEXUS_MOUNT_PATH", - description: "Nexus mount path (Nexus 3 instances have this configured as empty by default)", - default_value: "/nexus", + env_name: 'NEXUS_MOUNT_PATH', + description: 'Nexus mount path (Nexus 3 instances have this configured as empty by default)', + default_value: '/nexus', optional: true), PantographCore::ConfigItem.new(key: :username, - env_name: "FL_NEXUS_USERNAME", - description: "Nexus username", + env_name: 'NEXUS_USERNAME', + description: 'Nexus username', optional: false), PantographCore::ConfigItem.new(key: :password, - env_name: "FL_NEXUS_PASSWORD", - description: "Nexus password", + env_name: 'NEXUS_PASSWORD', + description: 'Nexus password', optional: false), PantographCore::ConfigItem.new(key: :ssl_verify, - env_name: "FL_NEXUS_SSL_VERIFY", - description: "Verify SSL", + env_name: 'NEXUS_SSL_VERIFY', + description: 'Verify SSL', is_string: false, default_value: true, optional: true), PantographCore::ConfigItem.new(key: :nexus_version, - env_name: "FL_NEXUS_MAJOR_VERSION", - description: "Nexus major version", + env_name: 'NEXUS_MAJOR_VERSION', + description: 'Nexus major version', type: Integer, default_value: 2, optional: true, verify_block: proc do |value| min_version = 2 max_version = 3 UI.user_error!("Unsupported version (#{value}) min. supported version: #{min_version}") unless value >= min_version UI.user_error!("Unsupported version (#{value}) max. supported version: #{max_version}") unless value <= max_version end), PantographCore::ConfigItem.new(key: :verbose, - env_name: "FL_NEXUS_VERBOSE", - description: "Make detailed output", + env_name: 'NEXUS_VERBOSE', + description: 'Make detailed output', is_string: false, default_value: false, optional: true), PantographCore::ConfigItem.new(key: :proxy_username, - env_name: "FL_NEXUS_PROXY_USERNAME", - description: "Proxy username", + env_name: 'NEXUS_PROXY_USERNAME', + description: 'Proxy username', optional: true), PantographCore::ConfigItem.new(key: :proxy_password, - env_name: "FL_NEXUS_PROXY_PASSWORD", + env_name: 'NEXUS_PROXY_PASSWORD', sensitive: true, - description: "Proxy password", + description: 'Proxy password', optional: true), PantographCore::ConfigItem.new(key: :proxy_address, - env_name: "FL_NEXUS_PROXY_ADDRESS", - description: "Proxy address", + env_name: 'NEXUS_PROXY_ADDRESS', + description: 'Proxy address', optional: true), PantographCore::ConfigItem.new(key: :proxy_port, - env_name: "FL_NEXUS_PROXY_PORT", - description: "Proxy port", + env_name: 'NEXUS_PROXY_PORT', + description: 'Proxy port', optional: true) ] end def self.authors - ["xfreebird", "mdio"] + ['xfreebird', 'mdio'] end def self.is_supported?(platform) true end