Class: SSRS::Shell

Inherits:
Object
  • Object
show all
Defined in:
lib/ssrs/shell.rb

Overview

Generator for “SQL Server Business Intelligence Development Studio” projects

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.generate_projects=(value) ⇒ Object (writeonly)

Sets the attribute generate_projects

Parameters:

  • value

    the value to set the attribute generate_projects to.



5
6
7
# File 'lib/ssrs/shell.rb', line 5

def generate_projects=(value)
  @generate_projects = value
end

.upload_reports=(value) ⇒ Object (writeonly)

Sets the attribute upload_reports

Parameters:

  • value

    the value to set the attribute upload_reports to.



11
12
13
# File 'lib/ssrs/shell.rb', line 11

def upload_reports=(value)
  @upload_reports = value
end

Class Method Details

.generate_projects?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/ssrs/shell.rb', line 7

def generate_projects?
  @generate_projects ||= false
end

.runObject



18
19
20
21
22
23
# File 'lib/ssrs/shell.rb', line 18

def self.run
  parse_args
  banner
  SSRS::BIDS.generate if generate_projects?
  SSRS::Uploader.upload if upload_reports?
end

.upload_reports?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/ssrs/shell.rb', line 13

def upload_reports?
  @upload_reports ||= false
end