95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
# File 'lib/fig/command/action/role/publish.rb', line 95
def derive_publish_statements_from_environment_statements
if @execution_context.package_load_path_description
message = 'Cannot publish based upon both a package definition file ('
message << @execution_context.package_load_path_description
message << ') and --set/--append options.'
if @execution_context.package_source_description ==
Fig::Command::PackageLoader::DEFAULT_PACKAGE_FILE ||
@execution_context.package_source_description ==
Fig::Command::PackageLoader::DEFAULT_APPLICATION_FILE ||
message << "\n\n"
message << 'You can avoid loading '
message << @execution_context.package_source_description
message << ' by using the --no-file option.'
end
raise Fig::UserInputError.new(message)
end
@publish_statements =
@asset_statements +
[
Fig::Statement::Configuration.new(
nil,
nil,
Fig::Package::DEFAULT_CONFIG,
@environment_statements
)
]
return
end
|