firespring_dev_commands 2.2.6 → 2.5.0.pre.alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/firespring_dev_commands/audit/report.rb +2 -9
  4. data/lib/firespring_dev_commands/aws/cloudformation.rb +3 -10
  5. data/lib/firespring_dev_commands/common.rb +2 -22
  6. data/lib/firespring_dev_commands/docker/status.rb +0 -20
  7. data/lib/firespring_dev_commands/docker.rb +16 -86
  8. data/lib/firespring_dev_commands/eol/aws.rb +2 -10
  9. data/lib/firespring_dev_commands/eol.rb +2 -22
  10. data/lib/firespring_dev_commands/git.rb +24 -37
  11. data/lib/firespring_dev_commands/jira/issue.rb +1 -3
  12. data/lib/firespring_dev_commands/node.rb +1 -1
  13. data/lib/firespring_dev_commands/php/audit.rb +0 -4
  14. data/lib/firespring_dev_commands/php.rb +12 -28
  15. data/lib/firespring_dev_commands/platform.rb +31 -38
  16. data/lib/firespring_dev_commands/ruby.rb +3 -6
  17. data/lib/firespring_dev_commands/target_process/query.rb +4 -30
  18. data/lib/firespring_dev_commands/target_process/release.rb +1 -1
  19. data/lib/firespring_dev_commands/target_process/team_assignment.rb +1 -1
  20. data/lib/firespring_dev_commands/target_process/user.rb +1 -13
  21. data/lib/firespring_dev_commands/target_process/user_story.rb +1 -1
  22. data/lib/firespring_dev_commands/target_process/user_story_history.rb +1 -1
  23. data/lib/firespring_dev_commands/target_process.rb +7 -24
  24. data/lib/firespring_dev_commands/templates/aws.rb +6 -33
  25. data/lib/firespring_dev_commands/templates/base_interface.rb +2 -2
  26. data/lib/firespring_dev_commands/templates/ci.rb +11 -16
  27. data/lib/firespring_dev_commands/templates/docker/application.rb +2 -2
  28. data/lib/firespring_dev_commands/templates/docker/node/application.rb +5 -55
  29. data/lib/firespring_dev_commands/templates/docker/php/application.rb +16 -58
  30. data/lib/firespring_dev_commands/templates/docker/ruby/application.rb +5 -54
  31. data/lib/firespring_dev_commands/templates/eol.rb +2 -9
  32. data/lib/firespring_dev_commands/templates/git.rb +0 -165
  33. data/lib/firespring_dev_commands/version.rb +1 -1
  34. data/lib/firespring_dev_commands.rb +1 -1
  35. metadata +37 -113
  36. data/lib/firespring_dev_commands/aws/route53.rb +0 -139
  37. data/lib/firespring_dev_commands/bloom_growth/rock.rb +0 -34
  38. data/lib/firespring_dev_commands/bloom_growth/seat.rb +0 -16
  39. data/lib/firespring_dev_commands/bloom_growth/user.rb +0 -43
  40. data/lib/firespring_dev_commands/bloom_growth.rb +0 -132
  41. data/lib/firespring_dev_commands/certificate.rb +0 -59
  42. data/lib/firespring_dev_commands/coverage/base.rb +0 -16
  43. data/lib/firespring_dev_commands/coverage/cobertura.rb +0 -86
  44. data/lib/firespring_dev_commands/coverage/none.rb +0 -21
  45. data/lib/firespring_dev_commands/dns/resource.rb +0 -83
  46. data/lib/firespring_dev_commands/docker/desktop.rb +0 -61
  47. data/lib/firespring_dev_commands/eol/node.rb +0 -42
  48. data/lib/firespring_dev_commands/eol/php.rb +0 -50
  49. data/lib/firespring_dev_commands/eol/ruby.rb +0 -42
  50. data/lib/firespring_dev_commands/jira/parent.rb +0 -19
  51. data/lib/firespring_dev_commands/os.rb +0 -35
  52. data/lib/firespring_dev_commands/port.rb +0 -24
  53. data/lib/firespring_dev_commands/target_process/time.rb +0 -32
  54. data/lib/firespring_dev_commands/templates/aws/services/route53.rb +0 -111
  55. data/lib/firespring_dev_commands/templates/certificate.rb +0 -41
@@ -1,32 +0,0 @@
1
- module Dev
2
- class TargetProcess
3
- # The class to query time information from Target Process
4
- class Time
5
- # The resource type for the api endpoint
6
- RESOURCE_TYPE = 'Time'.freeze
7
-
8
- # The api path for time requests
9
- PATH = '/Time'.freeze
10
-
11
- attr_accessor :data, :id, :type, :description, :hours, :date, :story, :user
12
-
13
- def initialize(data)
14
- @data = data
15
- @id = data['Id']
16
- @type = data['ResourceType']
17
- @description = data['Description']
18
- @hours = data['Spent']
19
- @date = parse_time(data['Date'])
20
- @story = UserStory.new(data['Assignable']) if data['Assignable']
21
- @user = User.new(data['User']) if data['User']
22
- end
23
-
24
- # Parse the dot net time representation into something that ruby can use
25
- def parse_time(string)
26
- return nil unless string && !string.empty?
27
-
28
- ::Time.at(string.slice(6, 10).to_i)
29
- end
30
- end
31
- end
32
- end
@@ -1,111 +0,0 @@
1
- require_relative '../../base_interface'
2
-
3
- module Dev
4
- module Template
5
- class Aws
6
- module Services
7
- # Class contains rake templates for managing your AWS settings and logging in
8
- class Route53 < Dev::Template::BaseInterface
9
- def create_list_zone_details_task!
10
- # Have to set a local variable to be accessible inside of the instance_eval block
11
- exclude = @exclude
12
-
13
- DEV_COMMANDS_TOP_LEVEL.instance_eval do
14
- return if exclude.include?(:list_details)
15
-
16
- namespace :aws do
17
- namespace :hosted_zone do
18
- desc 'print details for all hosted zones'
19
- task list_details: %w(ensure_aws_credentials) do
20
- route53 = Dev::Aws::Route53.new(ENV['DOMAINS'].to_s.strip.split(','))
21
- route53.list_zone_details
22
- end
23
- end
24
- end
25
- end
26
- end
27
-
28
- # Create the rake task for the hosted zone method
29
- def create_dns_logging_activate_task!
30
- # Have to set a local variable to be accessible inside of the instance_eval block
31
- exclude = @exclude
32
-
33
- DEV_COMMANDS_TOP_LEVEL.instance_eval do
34
- return if exclude.include?(:dns_logging_activate)
35
-
36
- namespace :aws do
37
- namespace :hosted_zone do
38
- namespace :dns_logging do
39
- desc 'Activates query logging for all hosted zones by default.' \
40
- 'This command should be run from the account the hosted zone(s) reside.' \
41
- "\n\t(Required) Specify LOG_GROUP_ARN='arn:aws:logs:REGION:ACCOUNT_ID:' to specify the ARN of the target log group." \
42
- "\n\toptionally specify DOMAINS='foo.com,foobar.com' to specify the hosted zones to activate." \
43
- "\n\t\tComma delimited list."
44
- task activate: %w(ensure_aws_credentials) do
45
- route53 = Dev::Aws::Route53.new(ENV['DOMAINS'].to_s.strip.split(','))
46
- # Use user defined log group.
47
- log_group = ENV.fetch('LOG_GROUP_ARN', nil)
48
- raise 'The Hosted Zone Log Group ARN, LOG_GROUP_ARN, is required' unless log_group
49
-
50
- route53.activate_query_logging(log_group)
51
- end
52
- end
53
- end
54
- end
55
- end
56
- end
57
-
58
- # Create the rake task for the hosted zone method
59
- def create_dns_logging_deactivate_task!
60
- # Have to set a local variable to be accessible inside of the instance_eval block
61
- exclude = @exclude
62
-
63
- DEV_COMMANDS_TOP_LEVEL.instance_eval do
64
- return if exclude.include?(:dns_logging_deactivate)
65
-
66
- namespace :aws do
67
- namespace :hosted_zone do
68
- namespace :dns_logging do
69
- desc 'Deactivates query logging for all hosted zones by default. ' \
70
- 'This command should be run from the account the hosted zone(s) reside.' \
71
- "\n\toptionally specify DOMAINS='foo.com,foobar.com' to specify the hosted zones to activate." \
72
- "\n\t\tComma delimited list."
73
- task deactivate: %w(ensure_aws_credentials) do
74
- route53 = Dev::Aws::Route53.new(ENV['DOMAINS'].to_s.strip.split(','))
75
- route53.deactivate_query_logging
76
- end
77
- end
78
- end
79
- end
80
- end
81
- end
82
-
83
- # Create the rake task for the hosted zone method
84
- def create_list_query_config_task!
85
- # Have to set a local variable to be accessible inside of the instance_eval block
86
- exclude = @exclude
87
-
88
- DEV_COMMANDS_TOP_LEVEL.instance_eval do
89
- return if exclude.include?(:dns_logging_config)
90
-
91
- namespace :aws do
92
- namespace :hosted_zone do
93
- namespace :dns_logging do
94
- desc 'Lists the current config for domain(s). ' \
95
- 'This command should be run from the account the hosted zone(s) reside.' \
96
- "\n\toptionally specify DOMAINS='foo.com,foobar.com' to specify the hosted zones to activate." \
97
- "\n\t\tComma delimited list."
98
- task list_query_configs: %w(ensure_aws_credentials) do
99
- route53 = Dev::Aws::Route53.new(ENV['DOMAINS'].to_s.strip.split(','))
100
- route53.list_query_configs
101
- end
102
- end
103
- end
104
- end
105
- end
106
- end
107
- end
108
- end
109
- end
110
- end
111
- end
@@ -1,41 +0,0 @@
1
- require_relative 'base_interface'
2
-
3
- module Dev
4
- module Template
5
- # Class contains rake templates for managing configured certificates
6
- class Certificate < Dev::Template::BaseInterface
7
- attr_reader :domains, :email, :paths
8
-
9
- def initialize(domains, email:, paths:, exclude: [])
10
- @domains = domains
11
- @email = email
12
- @paths = Array(paths)
13
-
14
- super(exclude:)
15
- end
16
-
17
- # Create the rake task for the generate method
18
- def create_generate_task!
19
- # Have to set a local variable to be accessible inside of the instance_eval block
20
- domains = @domains
21
- email = @email
22
- paths = @paths
23
- exclude = @exclude
24
-
25
- DEV_COMMANDS_TOP_LEVEL.instance_eval do
26
- return if exclude.include?(:generate)
27
-
28
- namespace :certificate do
29
- desc 'Requests a new certificate for the configured domain using the route53 validation and deposits it in the configured paths'
30
- task generate: %w(init_docker ensure_aws_credentials) do
31
- Dev::Docker.new.pull_image('certbot/dns-route53', 'latest')
32
- c = Dev::Certificate.new(domains, email)
33
- c.request
34
- paths.each { |path| c.save(path) }
35
- end
36
- end
37
- end
38
- end
39
- end
40
- end
41
- end