epc 1.0.4 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/epc.rb +3 -0
- data/lib/epc/client/base_client.rb +2 -1
- data/lib/epc/client/json_client.rb +22 -0
- data/lib/epc/command/archive_command.rb +1 -1
- data/lib/epc/command/attachto_command.rb +1 -1
- data/lib/epc/command/base_command.rb +35 -25
- data/lib/epc/command/build_command.rb +2 -2
- data/lib/epc/command/config/create_config_command.rb +1 -1
- data/lib/epc/command/config/delete_config_command.rb +4 -4
- data/lib/epc/command/config/list_configs_command.rb +1 -1
- data/lib/epc/command/config/update_config_command.rb +3 -3
- data/lib/epc/command/copy_command.rb +1 -1
- data/lib/epc/command/create_command.rb +1 -1
- data/lib/epc/command/delete_command.rb +2 -2
- data/lib/epc/command/deploy_command.rb +4 -3
- data/lib/epc/command/deployment/copy_deployment_command.rb +1 -1
- data/lib/epc/command/deployment/create_deployment_command.rb +3 -3
- data/lib/epc/command/deployment/list_deployments_command.rb +1 -1
- data/lib/epc/command/deployment/show_deployment_command.rb +1 -1
- data/lib/epc/command/deployment/submit_deployment_command.rb +1 -1
- data/lib/epc/command/deployment/update_deployment_command.rb +1 -1
- data/lib/epc/command/deployment/vote_deployment_command.rb +1 -1
- data/lib/epc/command/deploymentstage/list_deploymentstages_command.rb +1 -1
- data/lib/epc/command/detachfrom_command.rb +1 -1
- data/lib/epc/command/group/create_group_command.rb +1 -1
- data/lib/epc/command/group/delete_group_command.rb +1 -1
- data/lib/epc/command/group/list_groups_command.rb +1 -1
- data/lib/epc/command/group/show_group_command.rb +2 -1
- data/lib/epc/command/group/update_group_command.rb +1 -1
- data/lib/epc/command/library/create_library_command.rb +2 -2
- data/lib/epc/command/library/delete_library_command.rb +1 -1
- data/lib/epc/command/library/list_libraries_command.rb +1 -1
- data/lib/epc/command/librarylanguage/create_librarylanguage_command.rb +1 -1
- data/lib/epc/command/librarylanguage/delete_librarylanguage_command.rb +1 -1
- data/lib/epc/command/librarylanguage/list_librarylanguages_command.rb +1 -1
- data/lib/epc/command/librarylanguage/update_librarylanguage_command.rb +1 -1
- data/lib/epc/command/libraryset/create_libraryset_command.rb +2 -2
- data/lib/epc/command/libraryset/delete_libraryset_command.rb +1 -1
- data/lib/epc/command/libraryset/list_librarysets_command.rb +1 -1
- data/lib/epc/command/libraryset/show_libraryset_command.rb +1 -1
- data/lib/epc/command/libraryset/update_libraryset_command.rb +3 -3
- data/lib/epc/command/list_command.rb +1 -1
- data/lib/epc/command/objectrole/create_objectrole_command.rb +2 -1
- data/lib/epc/command/objectrole/list_objectroles_command.rb +1 -1
- data/lib/epc/command/objectrole/update_objectrole_command.rb +5 -1
- data/lib/epc/command/permission/list_permissions_command.rb +1 -1
- data/lib/epc/command/permissiongroup/list_permissiongroups_command.rb +1 -1
- data/lib/epc/command/plugin/create_plugin_command.rb +1 -1
- data/lib/epc/command/plugin/delete_plugin_command.rb +1 -1
- data/lib/epc/command/plugin/list_plugins_command.rb +1 -1
- data/lib/epc/command/plugin/show_plugin_command.rb +1 -1
- data/lib/epc/command/plugin/update_plugin_command.rb +2 -2
- data/lib/epc/command/project/archive_project_command.rb +1 -1
- data/lib/epc/command/project/attachto_project_command.rb +3 -3
- data/lib/epc/command/project/create_project_command.rb +2 -2
- data/lib/epc/command/project/delete_project_command.rb +1 -1
- data/lib/epc/command/project/detachfrom_project_command.rb +4 -4
- data/lib/epc/command/project/list_projects_command.rb +1 -1
- data/lib/epc/command/project/show_project_command.rb +2 -1
- data/lib/epc/command/project/unarchive_project_command.rb +1 -2
- data/lib/epc/command/project/update_project_command.rb +2 -2
- data/lib/epc/command/projecttype/create_projecttype_command.rb +3 -3
- data/lib/epc/command/projecttype/delete_projecttype_command.rb +2 -1
- data/lib/epc/command/projecttype/list_projecttypes_command.rb +1 -1
- data/lib/epc/command/projecttype/show_projecttype_command.rb +2 -1
- data/lib/epc/command/projecttype/update_projecttype_command.rb +4 -3
- data/lib/epc/command/pull_command.rb +12 -10
- data/lib/epc/command/push_command.rb +45 -29
- data/lib/epc/command/role/create_role_command.rb +1 -1
- data/lib/epc/command/role/delete_role_command.rb +2 -1
- data/lib/epc/command/role/list_roles_command.rb +2 -5
- data/lib/epc/command/role/show_role_command.rb +2 -2
- data/lib/epc/command/role/update_role_command.rb +1 -1
- data/lib/epc/command/runtime/create_runtime_command.rb +1 -1
- data/lib/epc/command/runtime/delete_runtime_command.rb +2 -1
- data/lib/epc/command/runtime/list_runtimes_command.rb +1 -1
- data/lib/epc/command/runtime/update_runtime_command.rb +4 -3
- data/lib/epc/command/runtimetype/list_runtimetypes_command.rb +1 -1
- data/lib/epc/command/servicedefinition/create_servicedefinition_command.rb +2 -2
- data/lib/epc/command/servicedefinition/delete_servicedefinition_command.rb +1 -1
- data/lib/epc/command/servicedefinition/list_servicedefinitions_command.rb +1 -1
- data/lib/epc/command/servicetype/list_servicetypes_command.rb +1 -1
- data/lib/epc/command/serviceversion/create_serviceversion_command.rb +2 -2
- data/lib/epc/command/serviceversion/delete_serviceversion_command.rb +3 -1
- data/lib/epc/command/serviceversion/list_serviceversions_command.rb +1 -1
- data/lib/epc/command/show_command.rb +1 -1
- data/lib/epc/command/solution/archive_solution_command.rb +1 -1
- data/lib/epc/command/solution/create_solution_command.rb +2 -2
- data/lib/epc/command/solution/delete_solution_command.rb +1 -1
- data/lib/epc/command/solution/list_solutions_command.rb +1 -1
- data/lib/epc/command/solution/show_solution_command.rb +1 -1
- data/lib/epc/command/solution/unarchive_solution_command.rb +1 -1
- data/lib/epc/command/solution/update_solution_command.rb +1 -1
- data/lib/epc/command/submit_command.rb +1 -1
- data/lib/epc/command/unarchive_command.rb +1 -1
- data/lib/epc/command/update_command.rb +1 -1
- data/lib/epc/command/user/create_user_command.rb +1 -1
- data/lib/epc/command/user/delete_user_command.rb +1 -1
- data/lib/epc/command/user/list_users_command.rb +1 -1
- data/lib/epc/command/user/show_user_command.rb +2 -1
- data/lib/epc/command/user/update_user_command.rb +3 -3
- data/lib/epc/command/userproperty/delete_user_property_command.rb +48 -0
- data/lib/epc/command/userproperty/get_user_property_command.rb +61 -0
- data/lib/epc/command/userproperty/list_user_properties_command.rb +1 -1
- data/lib/epc/command/userproperty/set_user_property_command.rb +52 -0
- data/lib/epc/command/vote_command.rb +1 -1
- data/lib/epc/config.rb +12 -0
- data/lib/epc/help.rb +20 -8
- data/lib/epc/runner.rb +22 -11
- data/lib/epc/version.rb +1 -1
- data/test/command/archive_project_command_test.rb +1 -1
- data/test/command/archive_solution_command_test.rb +1 -1
- data/test/command/build_command_test.rb +1 -1
- data/test/command/copy_deployment_command_test.rb +1 -1
- data/test/command/create_config_command_test.rb +1 -1
- data/test/command/create_deployment_command_test.rb +3 -3
- data/test/command/create_group_command_test.rb +1 -1
- data/test/command/create_library_command_test.rb +1 -1
- data/test/command/create_librarylanguage_command_test.rb +2 -2
- data/test/command/create_libraryset_command_test.rb +2 -2
- data/test/command/create_objectrole_command_test.rb +1 -1
- data/test/command/create_project_command_test.rb +2 -2
- data/test/command/create_projecttypes_command_test.rb +33 -0
- data/test/command/create_role_command_test.rb +10 -1
- data/test/command/create_runtime_command_test.rb +1 -1
- data/test/command/create_servicedefinition_command_test.rb +1 -1
- data/test/command/create_serviceversion_command_test.rb +1 -1
- data/test/command/create_solution_command_test.rb +2 -2
- data/test/command/create_user_command_test.rb +1 -1
- data/test/command/delete_config_command_test.rb +3 -3
- data/test/command/delete_library_command_test.rb +1 -1
- data/test/command/delete_librarylanguage_command_test.rb +1 -1
- data/test/command/delete_libraryset_command_test.rb +1 -1
- data/test/command/delete_plugin_command_test.rb +1 -1
- data/test/command/delete_project_command_test.rb +1 -1
- data/test/command/delete_projecttype_command_test.rb +1 -1
- data/test/command/delete_role_command_test.rb +1 -1
- data/test/command/delete_runtime_command_test.rb +1 -1
- data/test/command/delete_servicedefinition_command_test.rb +1 -1
- data/test/command/delete_serviceversion_command_test.rb +1 -1
- data/test/command/delete_solution_command_test.rb +1 -1
- data/test/command/delete_user_command_test.rb +1 -1
- data/test/command/delete_user_property_command_test.rb +60 -0
- data/test/command/deploy_command_test.rb +14 -6
- data/test/command/get_user_property_command_test.rb +58 -0
- data/test/command/list_command_test.rb +28 -0
- data/test/command/list_config_command_test.rb +1 -1
- data/test/command/list_deployments_command_test.rb +1 -1
- data/test/command/list_deploymentstages_command_test.rb +1 -1
- data/test/command/list_libraries_command_test.rb +1 -1
- data/test/command/list_librarylanguages_command_test.rb +1 -1
- data/test/command/list_librarysets_command_test.rb +1 -1
- data/test/command/list_objectroles_command_test.rb +1 -1
- data/test/command/list_permissiongroups_command_test.rb +1 -1
- data/test/command/list_permissions_command_test.rb +1 -1
- data/test/command/list_plugins_command_test.rb +1 -1
- data/test/command/list_projects_command_test.rb +1 -1
- data/test/command/list_projecttypes_command_test.rb +1 -1
- data/test/command/list_roles_command_test.rb +9 -1
- data/test/command/list_runtimes_command_test.rb +1 -1
- data/test/command/list_runtimetypes_command_test.rb +1 -1
- data/test/command/list_service_types_command_test.rb +1 -1
- data/test/command/list_servicedefinitions_command_test.rb +1 -1
- data/test/command/list_serviceversions_command_test.rb +1 -1
- data/test/command/list_solutions_command_test.rb +1 -1
- data/test/command/list_userproperties_command_test.rb +3 -3
- data/test/command/list_users_command_test.rb +1 -1
- data/test/command/pull_command_test.rb +8 -8
- data/test/command/push_command_test.rb +38 -8
- data/test/command/set_user_property_command_test.rb +50 -0
- data/test/command/show_command_test.rb +28 -0
- data/test/command/show_deployment_command_test.rb +1 -1
- data/test/command/show_group_command_test.rb +1 -1
- data/test/command/show_libraryset_command_test.rb +1 -1
- data/test/command/show_plugin_command_test.rb +1 -1
- data/test/command/show_project_command_test.rb +1 -1
- data/test/command/show_projecttype_command_test.rb +1 -1
- data/test/command/show_role_command_test.rb +1 -1
- data/test/command/show_solution_command_test.rb +1 -1
- data/test/command/show_user_command_test.rb +1 -1
- data/test/command/submit_deployment_command_test.rb +1 -1
- data/test/command/unarchive_project_command_test.rb +1 -1
- data/test/command/unarchive_solution_command_test.rb +1 -1
- data/test/command/update_config_command_test.rb +2 -2
- data/test/command/update_deployment_command_test.rb +1 -1
- data/test/command/update_group_command_test.rb +1 -1
- data/test/command/update_librarylanguage_command_test.rb +1 -1
- data/test/command/update_libraryset_command_test.rb +3 -3
- data/test/command/update_plugin_command_test.rb +2 -2
- data/test/command/update_project_command_test.rb +2 -2
- data/test/command/update_solution_command_test.rb +1 -1
- data/test/command/update_user_command_test.rb +2 -2
- data/test/command/vote_deployment_command_test.rb +1 -1
- metadata +38 -23
@@ -14,7 +14,7 @@ module EPC::Command
|
|
14
14
|
if status.successful?
|
15
15
|
say("Deployment [#{object_id}] has been #{approved ? "approved" : "rejected"} by you.")
|
16
16
|
else
|
17
|
-
|
17
|
+
say_err("Request failed: [#{response[:message]}]")
|
18
18
|
end
|
19
19
|
return status
|
20
20
|
end
|
@@ -4,7 +4,7 @@ module EPC::Command
|
|
4
4
|
def execute(args = [])
|
5
5
|
status, response, headers = client.get(EPC::Config::DEPLOYMENT_STAGES_PATH)
|
6
6
|
if status.failure?
|
7
|
-
|
7
|
+
say_err("Request failed: [#{response[:message]}]")
|
8
8
|
elsif response.empty?
|
9
9
|
say("No deployment stages available yet.")
|
10
10
|
else
|
@@ -2,7 +2,7 @@ module EPC::Command
|
|
2
2
|
class DetachfromCommand < BaseCommand
|
3
3
|
|
4
4
|
def execute(*args)
|
5
|
-
raise
|
5
|
+
raise InputError, "You need to specify the object for the command" if args.blank?
|
6
6
|
params = resolve_context(args)
|
7
7
|
@klass_name = "EPC::Command::Detachfrom#{@object_type.to_s.gsub("-","").capitalize}Command"
|
8
8
|
command = eval(@klass_name).new(client, @options)
|
@@ -4,7 +4,7 @@ module EPC::Command
|
|
4
4
|
def execute(target = nil)
|
5
5
|
status, response, headers = client.get(EPC::Config::GROUPS_PATH)
|
6
6
|
if status.failure?
|
7
|
-
|
7
|
+
say_err("Request failed: [#{response[:message]}]")
|
8
8
|
elsif response.empty?
|
9
9
|
say("No groups created.")
|
10
10
|
say("You can create one with epc create group")
|
@@ -1,12 +1,13 @@
|
|
1
1
|
module EPC::Command
|
2
2
|
class ShowGroupCommand < BaseCommand
|
3
3
|
def execute(args)
|
4
|
+
require_object
|
4
5
|
|
5
6
|
|
6
7
|
status, response, headers = client.get(EPC::Config::GROUPS_PATH + "/#{object_id}?include=users")
|
7
8
|
|
8
9
|
unless status.successful?
|
9
|
-
|
10
|
+
say_err("Request failed: [#{response[:message]}]")
|
10
11
|
return 1
|
11
12
|
end
|
12
13
|
|
@@ -20,7 +20,7 @@ module EPC::Command
|
|
20
20
|
say("User removed from group") if status.successful?
|
21
21
|
end
|
22
22
|
|
23
|
-
|
23
|
+
say_err("Request failed: [#{response[:message]}]") unless status.successful?
|
24
24
|
return status
|
25
25
|
end
|
26
26
|
|
@@ -22,7 +22,7 @@ module EPC::Command
|
|
22
22
|
say("Created library [#{args[0]}] with ID [#{response[:id]}]")
|
23
23
|
upload_library(@options[:file], response[:url], response[:signature]) if @options[:file]
|
24
24
|
else
|
25
|
-
|
25
|
+
say_err("Request failed: [#{response[:message]}]")
|
26
26
|
end
|
27
27
|
return status
|
28
28
|
end
|
@@ -33,7 +33,7 @@ module EPC::Command
|
|
33
33
|
if status.successful?
|
34
34
|
say("Successfully pushed library to the repository")
|
35
35
|
else
|
36
|
-
|
36
|
+
say_err("Failed to push the library to the repository [status = #{status}]")
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
@@ -5,7 +5,7 @@ module EPC::Command
|
|
5
5
|
status, response, headers = client.get(EPC::Config::LIBRARIES_PATH)
|
6
6
|
|
7
7
|
if status.failure?
|
8
|
-
|
8
|
+
say_err("Libraries retrieval failed with [#{response[:message]}]")
|
9
9
|
elsif response.empty?
|
10
10
|
say("You have no libraries created. You can create them with epc create library.")
|
11
11
|
else
|
@@ -13,7 +13,7 @@ module EPC::Command
|
|
13
13
|
say("Language [#{name}] added")
|
14
14
|
failures << false
|
15
15
|
else
|
16
|
-
|
16
|
+
say_err("Failed to create [#{name}] language: [#{response[:message]}]")
|
17
17
|
failures << true
|
18
18
|
end
|
19
19
|
end
|
@@ -4,7 +4,7 @@ module EPC::Command
|
|
4
4
|
def execute(args = [])
|
5
5
|
status, response, headers = client.get(EPC::Config::LIBRARY_LANGUAGES_PATH)
|
6
6
|
if status.failure?
|
7
|
-
|
7
|
+
say_err("Request failed: [#{response[:message]}]")
|
8
8
|
elsif response.empty?
|
9
9
|
say("No languages created")
|
10
10
|
say("You can create one with epc create library-language")
|
@@ -33,14 +33,14 @@ module EPC::Command
|
|
33
33
|
say("Library [#{lib_id}] added to set")
|
34
34
|
failures << false
|
35
35
|
else
|
36
|
-
|
36
|
+
say_err("Failed to add [#{lib_id}]: [#{response[:message]}]")
|
37
37
|
failures << true
|
38
38
|
end
|
39
39
|
end
|
40
40
|
return failures.all? ? 1 : 0
|
41
41
|
end
|
42
42
|
else
|
43
|
-
|
43
|
+
say_err("Request failed: [#{response[:message]}]")
|
44
44
|
end
|
45
45
|
|
46
46
|
return status
|
@@ -5,7 +5,7 @@ module EPC::Command
|
|
5
5
|
def execute(args = [])
|
6
6
|
status, response, headers = client.get(EPC::Config::LIBRARY_SETS_PATH)
|
7
7
|
if status.failure?
|
8
|
-
|
8
|
+
say_err("Request failed: [#{response[:message]}]")
|
9
9
|
elsif response.empty?
|
10
10
|
say("No sets created")
|
11
11
|
say("You can create one with epc create library-set")
|
@@ -8,7 +8,7 @@ module EPC::Command
|
|
8
8
|
status, response, headers = client.get(EPC::Config::LIBRARY_SETS_PATH + "/#{object_id}")
|
9
9
|
|
10
10
|
if status.failure?
|
11
|
-
|
11
|
+
say_err("Request failed: [#{response[:message]}]")
|
12
12
|
else
|
13
13
|
if options[:json].nil?
|
14
14
|
response[:language] = response[:library_language][:name] rescue nil
|
@@ -16,7 +16,7 @@ module EPC::Command
|
|
16
16
|
if status.successful?
|
17
17
|
say("Library [#{lib}] added to set")
|
18
18
|
else
|
19
|
-
|
19
|
+
say_err("Request failed: [#{response[:message]}]")
|
20
20
|
end
|
21
21
|
return status
|
22
22
|
end
|
@@ -29,7 +29,7 @@ module EPC::Command
|
|
29
29
|
if status.successful?
|
30
30
|
say("Library [#{lib}] removed from set")
|
31
31
|
else
|
32
|
-
|
32
|
+
say_err("Request failed: [#{response[:message]}]")
|
33
33
|
end
|
34
34
|
return status
|
35
35
|
end
|
@@ -46,7 +46,7 @@ module EPC::Command
|
|
46
46
|
say("Library [#{lib_id}] added to set")
|
47
47
|
failures << false
|
48
48
|
else
|
49
|
-
|
49
|
+
say_err("Failed to add [#{lib_id}]: [#{response[:message]}]")
|
50
50
|
failures << true
|
51
51
|
end
|
52
52
|
end
|
@@ -2,7 +2,7 @@ module EPC::Command
|
|
2
2
|
class ListCommand < BaseCommand
|
3
3
|
|
4
4
|
def execute(*args)
|
5
|
-
raise
|
5
|
+
raise InputError, "You need to specify the object for the command" if args.blank?
|
6
6
|
params = resolve_context(args, {:skip_object_resolution => Proc.new{|type, id| type.downcase == "versions"}})
|
7
7
|
raise FatalError, "Object type cound not be determined" if @object_type.blank?
|
8
8
|
@klass_name = "EPC::Command::List#{@object_type.to_s.gsub("-","").capitalize}Command"
|
@@ -1,6 +1,7 @@
|
|
1
1
|
module EPC::Command
|
2
2
|
class CreateObjectroleCommand < BaseCommand
|
3
3
|
def execute(args = [])
|
4
|
+
require_target
|
4
5
|
name = args[0]
|
5
6
|
|
6
7
|
raise FatalError, "Name is required" if name.blank?
|
@@ -10,7 +11,7 @@ module EPC::Command
|
|
10
11
|
if status.successful?
|
11
12
|
say("Role [#{name}] created")
|
12
13
|
else
|
13
|
-
|
14
|
+
say_err("Request failed: [#{response[:message]}]")
|
14
15
|
end
|
15
16
|
|
16
17
|
end
|
@@ -6,7 +6,11 @@ module EPC::Command
|
|
6
6
|
def execute(role = nil, *args)
|
7
7
|
role_id = retrieve_identifier_for("Role", object_id.split(":"))
|
8
8
|
|
9
|
-
|
9
|
+
raise InputError, "Role not found" if role_id.blank?
|
10
|
+
|
11
|
+
cmd = UpdateRoleCommand
|
12
|
+
cmd.include_module("Role")
|
13
|
+
cmd = cmd.new(client, @options)
|
10
14
|
cmd.object_id = role_id
|
11
15
|
cmd.object_type = "Role"
|
12
16
|
return cmd.execute(role_id)
|
@@ -6,7 +6,7 @@ module EPC::Command
|
|
6
6
|
status, response, headers = client.get(EPC::Config::PERMISSIONS_PATH)
|
7
7
|
|
8
8
|
if status.failure?
|
9
|
-
|
9
|
+
say_err("Request failed: [#{response[:message]}]")
|
10
10
|
else
|
11
11
|
response.sort!{|grp1, grp2| grp1[:group_name] <=> grp2[:group_name] }
|
12
12
|
p_groups_table = EPC::TabularOutputter.new(response, [:group_name, :action])
|
@@ -10,7 +10,7 @@ module EPC::Command
|
|
10
10
|
plugins_table = EPC::TabularOutputter.new(response, [:id, :name, :group, :plugin_version])
|
11
11
|
say(plugins_table.print)
|
12
12
|
else
|
13
|
-
|
13
|
+
say_err("Request failed: [#{response[:message]}]")
|
14
14
|
end
|
15
15
|
|
16
16
|
return status
|
@@ -16,7 +16,7 @@ module EPC::Command
|
|
16
16
|
params.each do |attr, val|
|
17
17
|
unless UPDATABLE_ATTRIBUTES.include?(attr)
|
18
18
|
params.delete(attr)
|
19
|
-
|
19
|
+
say_err("Cannot update #{attr}. Updatable attributes are: [#{UPDATABLE_ATTRIBUTES.join(', ')}]")
|
20
20
|
next
|
21
21
|
end
|
22
22
|
end
|
@@ -28,7 +28,7 @@ module EPC::Command
|
|
28
28
|
if status.successful?
|
29
29
|
say("Plugin updated")
|
30
30
|
else
|
31
|
-
|
31
|
+
say_err("Request failed: [#{response[:message]}]")
|
32
32
|
end
|
33
33
|
|
34
34
|
return status
|
@@ -8,7 +8,7 @@ module EPC::Command
|
|
8
8
|
if status.successful?
|
9
9
|
say("Project has been archived.")
|
10
10
|
else
|
11
|
-
|
11
|
+
say_err("Project could not be archived. Request failed with: [#{response[:message]}]")
|
12
12
|
end
|
13
13
|
return status
|
14
14
|
end
|
@@ -67,7 +67,7 @@ module EPC::Command
|
|
67
67
|
if status.successful?
|
68
68
|
say("Runtime attached")
|
69
69
|
else
|
70
|
-
|
70
|
+
say_err("Request failed: [#{response[:message]}]")
|
71
71
|
end
|
72
72
|
return status
|
73
73
|
end
|
@@ -78,7 +78,7 @@ module EPC::Command
|
|
78
78
|
if status.successful?
|
79
79
|
say("Service bound.")
|
80
80
|
else
|
81
|
-
|
81
|
+
say_err("Request failed: [#{response[:message]}]")
|
82
82
|
end
|
83
83
|
|
84
84
|
return status
|
@@ -93,7 +93,7 @@ module EPC::Command
|
|
93
93
|
if status.successful?
|
94
94
|
say("Dependency defined")
|
95
95
|
else
|
96
|
-
|
96
|
+
say_err("Request failed: [#{response[:message]}]")
|
97
97
|
end
|
98
98
|
return status
|
99
99
|
|
@@ -66,10 +66,10 @@ module EPC::Command
|
|
66
66
|
say("Successfully created the project with [#{target_url}], but FAILED to create your local directory.")
|
67
67
|
end
|
68
68
|
else
|
69
|
-
|
69
|
+
say_err("Project creation failed [#{response[:message]}].")
|
70
70
|
end
|
71
71
|
rescue Exception => ex
|
72
|
-
|
72
|
+
say_err("Project creation failed [#{ex}].")
|
73
73
|
return 1
|
74
74
|
end
|
75
75
|
return status
|
@@ -17,7 +17,7 @@ module EPC::Command
|
|
17
17
|
if status.successful?
|
18
18
|
say("Project deleted.")
|
19
19
|
else
|
20
|
-
|
20
|
+
say_err("Project could not be deleted. Delete failed with: [#{response[:message]}]")
|
21
21
|
end
|
22
22
|
return status
|
23
23
|
|
@@ -23,7 +23,7 @@ module EPC::Command
|
|
23
23
|
if status.successful?
|
24
24
|
say("Library detached from project.")
|
25
25
|
else
|
26
|
-
|
26
|
+
say_err("Request failed: [#{response[:message]}]")
|
27
27
|
end
|
28
28
|
return status
|
29
29
|
end
|
@@ -34,7 +34,7 @@ module EPC::Command
|
|
34
34
|
if status.successful?
|
35
35
|
say("Library set detached")
|
36
36
|
else
|
37
|
-
|
37
|
+
say_err("Request failed: [#{response[:message]}]")
|
38
38
|
end
|
39
39
|
|
40
40
|
return status
|
@@ -46,7 +46,7 @@ module EPC::Command
|
|
46
46
|
if status.successful?
|
47
47
|
say("Service version detached.")
|
48
48
|
else
|
49
|
-
|
49
|
+
say_err("Request failed: [#{response[:message]}]")
|
50
50
|
end
|
51
51
|
return status
|
52
52
|
end
|
@@ -56,7 +56,7 @@ module EPC::Command
|
|
56
56
|
if status.successful?
|
57
57
|
say("Dependency detached")
|
58
58
|
else
|
59
|
-
|
59
|
+
say_err("Request failed: [#{response[:message]}]")
|
60
60
|
end
|
61
61
|
return status
|
62
62
|
end
|