Top Level Namespace
Defined Under Namespace
Modules: SfCli
Instance Method Summary collapse
- #apex(apex_code) ⇒ Object
- #connection ⇒ Object (also: #conn)
- #generate(*object_types) ⇒ Object (also: #gen)
-
#sf ⇒ Object
For details of sf command, see the reference guide.
- #sf_init(org_alias) ⇒ Object (also: #sfinit)
- #target_org ⇒ Object (also: #org)
Instance Method Details
#apex(apex_code) ⇒ Object
24 25 26 |
# File 'lib/sf_cli/sf/console.rb', line 24 def apex(apex_code) sf.apex.run target_org: target_org, file: StringIO.new(apex_code) end |
#connection ⇒ Object Also known as: conn
16 17 18 |
# File 'lib/sf_cli/sf/console.rb', line 16 def connection SfCli::Sf::Model.connection end |
#generate(*object_types) ⇒ Object Also known as: gen
12 13 14 |
# File 'lib/sf_cli/sf/console.rb', line 12 def generate(*object_types) SfCli::Sf::Model.generate object_types end |
#sf ⇒ Object
For details of sf command, see the reference guide
17 18 19 |
# File 'lib/sf_cli.rb', line 17 def sf SfCli::Sf::Main.instance end |
#sf_init(org_alias) ⇒ Object Also known as: sfinit
6 7 8 9 10 |
# File 'lib/sf_cli/sf/console.rb', line 6 def sf_init(org_alias) org_info = sf.org.display target_org: org_alias conn = SfCli::Sf::Model::SfCommandConnection.new target_org: org_alias, instance_url: org_info.instance_url SfCli::Sf::Model.set_connection conn end |
#target_org ⇒ Object Also known as: org
20 21 22 |
# File 'lib/sf_cli/sf/console.rb', line 20 def target_org connection.target_org end |